tornadofx / tornadofx / javafx.event.EventTarget / togglebutton

togglebutton

fun EventTarget.togglebutton(text: String? = null, group: ToggleGroup? = getToggleGroup(), selectFirst: Boolean = true, value: Any? = null, op: ToggleButton.() -> Unit = {}): <ERROR CLASS>

Create a togglebutton inside the current or given toggle group. The optional value parameter will be matched against the extension property selectedValueProperty() on Toggle Group. If the #ToggleGroup.selectedValueProperty is used, its value will be updated to reflect the value for this radio button when its selected.

Likewise, if the selectedValueProperty of the ToggleGroup is updated to a value that matches the value for this togglebutton, it will be automatically selected.

fun EventTarget.togglebutton(text: ObservableValue<String>? = null, group: ToggleGroup? = getToggleGroup(), selectFirst: Boolean = true, value: Any? = null, op: ToggleButton.() -> Unit = {}): <ERROR CLASS>