UI & Widgets
Appmixer UI is a tool for building user interfaces with component-based widgets.
Was this helpful?
Was this helpful?
widget.open()widget.close()widget.reload()widget.reset()widget.state(path, value) // setter
widget.state(path) // getter{
"foo": false,
"bar": { "counter": 1 }
}// set properties by key or path
widget.state('foo', true)
widget.state('bar', { counter: 2 })
widget.state('bar/counter', 3)
// get properties by key or path
widget.state('foo') // true
widget.state('bar') // { counter: 3 }
widget.state('bar/counter') // 3
// get the entire state
widget.state() // { foo: true, bar: { counter: 3 } }
// reset the state to defaults
widget.reset() // { foo: false, bar: { counter: 1 } }widget.set(key, value)widget.get(key, value)widget.on(name, handler)widget.off(name)