toggleButton

inline fun Table.toggleButton(constructor: Button.() -> Unit, toggleableStyle: Button.ButtonStyle = Styles.togglet, crossinline ontoggle: Button.(Boolean) -> Unit = {}): Cell<ToggleButton>

Creates a toggle button constructed by a lambda and returns the created cell. ontoggle is called whenever the button is toggled.

Throws

when the providen style doesn't support checked state