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.openMount the widget instance and render it inside the el container.
widget.close
widget.closeUnmount the widget instance and hide the el container.
widget.reload
widget.reloadReload the entire widget.
widget.reset
widget.resetReset 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.set
widget.setSet config property.
widget.get
widget.getGet config property.
widget.on
widget.onAdd a new event listener and disable the default handler of the event.
widget.off
widget.offRemove an event listener and enable the default handler of the event.
Last updated
Was this helpful?
