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 bool The new toggle state on or off
TextButton:setToggleState (state, notify)
Change the button's toggle state.

Parameters:

  • state bool The new toggle state on or off
  • notify bool 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.4.6 Last updated 2025-02-03 21:43:38