textToggle

inline fun Table.textToggle(text: String, toggleableStyle: Button.ButtonStyle = Styles.togglet, wrap: Boolean = false, align: Int? = null, ellipsis: String? = null, crossinline ontoggle: Button.(Boolean) -> Unit = {}): Cell<ToggleButton>

Simmilar to toggleButton but adds a constant label


inline fun Table.textToggle(crossinline text: (Boolean) -> String, toggleableStyle: Button.ButtonStyle = Styles.togglet, wrap: Boolean = false, align: Int? = null, ellipsis: String? = null, crossinline ontoggle: Button.(Boolean) -> Unit = {}): Cell<ToggleButton>

Simmilar to toggleButton but adds a dynamic label


inline fun Table.textToggle(textEnabled: String, textDisabled: String, toggleableStyle: Button.ButtonStyle = Styles.togglet, wrap: Boolean = false, align: Int? = null, ellipsis: String? = null, crossinline ontoggle: Button.(Boolean) -> Unit = {}): Cell<ToggleButton>

Adds a text toggle button and returns the created cell. The toggle uses textEnabled or textDisabled depending on whether it's toggled on or off.