Module ElementWithToggle

Abstract class to define elements with activate, deactivate, toggle, and getState method.

Extends: Element > ElementWithState

Extended by:

See also:

Functions

activate () Deprecated: Switches the element on/open.
deactivate () Deprecated: Switches the element off/open.
toggle () Toggle the state of the element.
mockGetClosure () Mock only, not in-game: Bundles the object into a closure so functions can be called with "." instead of ":".


Functions

activate ()
Deprecated: Switches the element on/open.

This method is deprecated: element-specific methods should be used instead.

deactivate ()
Deprecated: Switches the element off/open.

This method is deprecated: element-specific methods should be used instead.

toggle ()
Toggle the state of the element.
mockGetClosure ()
Mock only, not in-game: Bundles the object into a closure so functions can be called with "." instead of ":".

Returns:

    table A table encompasing the api calls of object.

See also:

generated by LDoc 1.5.0 Last updated 2024-09-27 15:22:46