UI & Widgets
Appmixer UI is a tool for building user interfaces with component-based widgets.
Configuration
Widgets are included in appmixer.ui
instances made with Appmixer constructor:
config.el
config.el
Type: String|Element
| Default: null
HTML DOM element to serve as a container of the widget.
config.theme
config.theme
Type: Object
| Default: DefaultTheme
Custom theme definition.
config.l10n
config.l10n
Type: Object
| Default: DefaultL10N
Custom localization texts.
config.lang
config.lang
Type: String
| Default: en
Language code for localization of components.
config.api
config.api
Type: Object
| Default: DefaultAPI
Custom API methods.
Instance
widget.open
widget.open
Mount the widget
instance and render it inside the el
container.
widget.close
widget.close
Unmount the widget
instance and hide the el
container.
widget.reload
widget.reload
Reload the entire widget
.
widget.reset
widget.reset
Reset the state of the widget to defaults.
widget.state
widget.state
Use state
for properties that may change at any time when the widget
is active.
widget.set
widget.set
Set config
property.
widget.get
widget.get
Get config
property.
widget.on
widget.on
Add a new event listener and disable the default handler of the event.
widget.off
widget.off
Remove an event listener and enable the default handler of the event.
Last updated