Show:

Mixin: Toggled

Toggled

Toggled mixin class.

Extends

Members

optionsObject

Members

member

staticToggled#options.app_eventsObject

Members

member

staticToggled#options.app_events."app.clicked"function

Toggles the widget off, delegating to Toggled#sleep, if it's in opened tate, and a click was performed in the app.

Methods

sleep(){Toggled}

mixins/Toggled.js, line 66

Disables opened state. Sets this.opened to false.

toggle(context){Toggled}

mixins/Toggled.js, line 79

Toggles opened state (this.opened) and in turn toggles the widget state by calling Toggled#wake or Toggled#sleep.

Name Type Description
context * optional

a context to pass to Toggled#wake.

wake(){Toggled}

mixins/Toggled.js, line 53

Enables opened state. Sets this.opened to true.