The following is a list of UI components you can use in your apps.
To see all components in action, please visit UI Components.
UIButton
includingdefault
,primary
, andsecondary
actionsUICheckbox
WIPUIFolder
WIP displays a file-system navigatorUIListBox
- Provides a flat list of options that a user may select. Supports:- selecting multiple options
- selecting a single option
- treating options like buttons
UILittleControls
a group of small up and down arrowsUIMenu
display menu options in the OS bar (e.g.File
,View
,Help
)UIModal
a composition of UI components. Touches are prevented outside of the modal until the modal is dismissed.UIPopup
displays drop-down of selectionsUIRadio
WIPUITabs
provides a horiztonal list of file-like tabsUITextField
displays text fieldUIWindow
is a composition of UI components- Optionally allows a close button
- Optionally allows a fullscreen button
ui-window container.group
: ShowUIWindow
container w/ no padding and a 1px border between components
- A comprehensive library of CSS selector for layout
hbox
,vbox
,gap-*
,align-*
: A horizontal and vertical box model w/ several gap and alignment optionscontrols
: Standardized way of groupingUIButton
s to the rightUITextField
helpers includeread-only
,text-field
,text-area
The OS comes with several convenient modal types.
Alert
viaos.ui.showAlert(msg: str)
: Display an alert to a userDelete
viaos.ui.showDelete(msg: str, cancel: function, ok: function)
: Display a modal that asks the user if they want to delete somethingError
viaos.ui.showError(msg: str)
: Display an error messageInfo
viaos.ui.showInfo(msg: str)
: Display an alert to a user. This has the option of beingawait
ed until dismissed.ProgressBar
viaos.ui.showProgressBar(title: str, fn: function, indeterminate: bool=false)
: Display a progress bar with an optionalfn
that is called when theStop
button is pressed.
Loading
viaos.ui.showBusy()
: Shows a watch until you callos.ui.hideBusy()
. This API may change in the future.