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:
const appmixer = new Appmixer(/* ... */)
const widget = appmixer.ui.FlowManager(config)config.el
config.elType: String|Element | Default: null
HTML DOM element to serve as a container of the widget.
config.theme
config.themeType: Object | Default: DefaultTheme
Custom theme definition.
config.l10n
config.l10nType: Object | Default: DefaultL10N
Custom localization texts.
config.lang
config.langType: String | Default: en
Language code for localization of components.
config.api
config.apiType: Object | Default: DefaultAPI
Custom API methods.
Instance
widget.open
widget.openwidget.open()Mount the widget instance and render it inside the el container.
widget.close
widget.closewidget.close()Unmount the widget instance and hide the el container.
widget.reload
widget.reloadwidget.reload()Reload the entire widget.
widget.reset
widget.resetwidget.reset()Reset the state of the widget to defaults.
widget.state
widget.stateUse state for properties that may change at any time when the widget is active.
widget.state(path, value) // setter
widget.state(path) // getterwidget.set
widget.setwidget.set(key, value)Set config property.
widget.get
widget.getwidget.get(key, value)Get config property.
widget.on
widget.onwidget.on(name, handler)Add a new event listener and disable the default handler of the event.
widget.off
widget.offwidget.off(name)Remove an event listener and enable the default handler of the event.
Last updated
Was this helpful?
