Function
Static Public Summary | ||
public |
Box(props: BoxProperties, children: h[]) A flexbox |
|
public |
BoxContainer(props: BoxProperties, children: h[]) A flexbox container |
|
public |
BoxStyled(props: BoxProperties, children: h[]) A styled flexbox container |
|
public |
A button |
|
public |
A generic OS.js GUI container |
|
public |
A status bar |
|
public |
An icon |
|
public |
A iframe |
|
public |
A image |
|
public |
A label element |
|
public |
A menu |
|
public |
Menubar(props: BoxProperties, children: h[]) A menubar container |
|
public |
MenubarItem(props: Object, children: h[]): * A menubar item |
|
public |
Resizable panes |
|
public |
Progressbar(props: Object, children: h[]): * A progress bar |
|
public |
RangeField(props: Object, children: h[]) A range field |
|
public |
SelectField(props: Object, children: h[]): * A text field |
|
public |
A status bar |
|
public |
A tab container |
|
public |
A text field |
|
public |
TextareaField(props: Object, children: h[]) A text field |
|
public |
ToggleField(props: Object, children: h[]) A text field |
|
public |
Toolbar(props: BoxProperties, children: h[]) Contains entries with spacing |
|
public |
A video |
|
public |
createField(name: String, props: Object, cb: Function, cb: Function): * Creates a new field Element wrapper |
|
public |
Creates a double-tap event handler |
|
public |
filteredProps(props: Object, filterKeys: String[]): Object Filter an object based on keys |
Static Public
public Box(props: BoxProperties, children: h[]) source
import {Box} from '@osjs/gui/src/components/Box.js'
A flexbox
Params:
Name | Type | Attribute | Description |
props | BoxProperties | Properties |
|
props.orientation | string |
|
Box orientation |
children | h[] | Children |
public BoxContainer(props: BoxProperties, children: h[]) source
import {BoxContainer} from '@osjs/gui/src/components/BoxContainer.js'
A flexbox container
Params:
Name | Type | Attribute | Description |
props | BoxProperties | Properties |
|
props.orientation | string |
|
Box orientation |
children | h[] | Children |
public BoxStyled(props: BoxProperties, children: h[]) source
import {BoxStyled} from '@osjs/gui/src/components/BoxStyled.js'
A styled flexbox container
Params:
Name | Type | Attribute | Description |
props | BoxProperties | Properties |
|
children | h[] | Children |
public Button(props: Object, children: h[]) source
import {Button} from '@osjs/gui/src/components/Button.js'
A button
Params:
Name | Type | Attribute | Description |
props | Object | Properties |
|
props.icon | string |
|
Icon source |
props.label | string |
|
Use this as label instead of children |
props.box | BoxProperties |
|
Box Properties |
children | h[] | Children |
public Element(props: Object, children: h[]): * source
import {Element} from '@osjs/gui/src/components/Element.js'
A generic OS.js GUI container
Params:
Name | Type | Attribute | Description |
props | Object | Properties |
|
children | h[] | Children |
Return:
* |
public Expander(props: Object, children: h[]) source
import {Expander} from '@osjs/gui/src/components/Expander.js'
A status bar
Params:
Name | Type | Attribute | Description |
props | Object | Properties |
|
props.active | boolean |
|
Active state |
props.ontoggle | Function |
|
Toggle callback => (ev, active) |
props.box | BoxProperties |
|
Box Properties |
children | h[] | Children |
public Icon(props: Object, children: h[]): * source
import {Icon} from '@osjs/gui/src/components/Icon.js'
An icon
Return:
* |
public Iframe(props: Object, children: h[]) source
import {Iframe} from '@osjs/gui/src/components/Iframe.js'
A iframe
Params:
Name | Type | Attribute | Description |
props | Object | Properties |
|
props.box | BoxProperties |
|
Box Properties |
children | h[] | Children |
public Image(props: Object) source
import {Image} from '@osjs/gui/src/components/Image.js'
A image
Params:
Name | Type | Attribute | Description |
props | Object | Properties |
|
props.src | String | The image source |
|
props.alt | String |
|
The image alternate text |
props.width | number |
|
Image width |
props.height | number |
|
Image height |
props.onload | Function |
|
On loaded data event |
props.oncreate | Function |
|
Hyperapp oncreate function |
props.onupdate | Function |
|
Hyperapp onupdate function |
props.ondestroy | Function |
|
Hyperapp ondestroy function |
public Label(props: Object, children: h[]): * source
import {Label} from '@osjs/gui/src/components/Label.js'
A label element
Params:
Name | Type | Attribute | Description |
props | Object | Properties |
|
props.text | string |
|
Label Text |
props.placement | string |
|
Placement |
props.for | string |
|
The "for" attribute |
props.box | BoxProperties |
|
Box Properties |
children | h[] | Children |
Return:
* |
public Menubar(props: BoxProperties, children: h[]) source
import {Menubar} from '@osjs/gui/src/components/Menubar.js'
A menubar container
Params:
Name | Type | Attribute | Description |
props | BoxProperties |
|
Box Properties |
props.items | MenubarItem[] |
|
Array of object |
children | h[] | Children |
public MenubarItem(props: Object, children: h[]): * source
import {MenubarItem} from '@osjs/gui/src/components/Menubar.js'
A menubar item
Params:
Name | Type | Attribute | Description |
props | Object | Properties |
|
children | h[] | Children |
Return:
* |
public Panes(props: Object, children: h[]) source
import {Panes} from '@osjs/gui/src/components/Panes.js'
Resizable panes
public Progressbar(props: Object, children: h[]): * source
import {Progressbar} from '@osjs/gui/src/components/Progressbar.js'
A progress bar
Params:
Name | Type | Attribute | Description |
props | Object | Properties |
|
props.value | number |
|
The value (percentage) |
props.box | BoxProperties |
|
Box Properties |
children | h[] | Children |
Return:
* |
public RangeField(props: Object, children: h[]) source
import {RangeField} from '@osjs/gui/src/components/RangeField.js'
A range field
Params:
Name | Type | Attribute | Description |
props | Object | Properties |
|
props.min | string |
|
Minimum value |
props.max | string |
|
Maximum value |
props.value | string |
|
Value |
props.box | BoxProperties |
|
Box Properties |
children | h[] | Children |
public SelectField(props: Object, children: h[]): * source
import {SelectField} from '@osjs/gui/src/components/SelectField.js'
A text field
Params:
Name | Type | Attribute | Description |
props | Object | Properties |
|
props.value | string |
|
Value |
props.box | BoxProperties |
|
Box Properties |
children | h[] | Children |
Return:
* |
public Statusbar(props: Object, children: h[]) source
import {Statusbar} from '@osjs/gui/src/components/Statusbar.js'
A status bar
Params:
Name | Type | Attribute | Description |
props | Object | Properties |
|
props.box | BoxProperties |
|
Box Properties |
children | h[] | Children |
public Tabs(props: Object, children: h[]) source
import {Tabs} from '@osjs/gui/src/components/Tabs.js'
A tab container
public TextField(props: Object, children: h[]) source
import {TextField} from '@osjs/gui/src/components/TextField.js'
A text field
Params:
Name | Type | Attribute | Description |
props | Object | Properties |
|
props.value | string |
|
Value |
props.type | string |
|
Type |
props.box | BoxProperties |
|
Box Properties |
children | h[] | Children |
public TextareaField(props: Object, children: h[]) source
import {TextareaField} from '@osjs/gui/src/components/TextareaField.js'
A text field
Params:
Name | Type | Attribute | Description |
props | Object | Properties |
|
props.value | string |
|
Value |
props.rows | number |
|
Number of rows |
props.box | BoxProperties |
|
Box Properties |
children | h[] | Children |
public ToggleField(props: Object, children: h[]) source
import {ToggleField} from '@osjs/gui/src/components/ToggleField.js'
A text field
Params:
Name | Type | Attribute | Description |
props | Object | Properties |
|
props.checked | string |
|
Value |
props.type | string |
|
Type |
props.box | BoxProperties |
|
Box Properties |
children | h[] | Children |
public Toolbar(props: BoxProperties, children: h[]) source
import {Toolbar} from '@osjs/gui/src/components/Toolbar.js'
Contains entries with spacing
Params:
Name | Type | Attribute | Description |
props | BoxProperties | Properties |
|
props.orientation | string |
|
Box orientation |
children | h[] | Children |
public Video(props: Object) source
import {Video} from '@osjs/gui/src/components/Video.js'
A video
Params:
Name | Type | Attribute | Description |
props | Object | Properties |
|
props.class | String |
|
Append this className |
props.style | Object |
|
CSS Style object |
props.src | String | The video source |
|
props.width | number |
|
Video width |
props.height | number |
|
Video height |
props.poster | String |
|
Poster image source |
props.loop | Boolean |
|
Loop video |
props.autoplay | Boolean |
|
Autoplay video |
props.controls | Boolean |
|
Show controls |
props.onloadeddata | Function |
|
On loaded data event |
public createField(name: String, props: Object, cb: Function, cb: Function): * source
import {createField} from '@osjs/gui/src/element.js'
Creates a new field Element wrapper
Return:
* |
public doubleTap(timeout: number): Function source
import {doubleTap} from '@osjs/gui/src/utils.js'
Creates a double-tap event handler
Params:
Name | Type | Attribute | Description |
timeout | number |
|
Timeout |