Class el.TextButton

A Text Button.

Is a el.Widget.

Attributes

TextButton.togglestate The button's toggle state (bool) Setting this property will notify listeners.
TextButton.text Displayed text (string)

Methods

TextButton:setToggleState (state) Change the button's toggle state.
TextButton:setToggleState (state, notify) Change the button's toggle state.

Handlers

TextButton:clicked (self) On clicked handler.


Attributes

TextButton.togglestate
The button's toggle state (bool) Setting this property will notify listeners. If you need to change the toggle state and NOT notify, use the setToggleState method instead.
TextButton.text
Displayed text (string)

Methods

TextButton:setToggleState (state)
Change the button's toggle state. Note this variation will send notifications to listeners.

Parameters:

  • state boolean The new toggle state on or off
TextButton:setToggleState (state, notify)
Change the button's toggle state.

Parameters:

  • state boolean The new toggle state on or off
  • notify boolean If true sends notification to listeners

Handlers

TextButton:clicked (self)
On clicked handler. Executed when the button is clicked by the user.

Parameters:

generated by LDoc 1.5.0 Last updated 2024-02-18 20:31:17