PropertyRadioMenuItem

class PropertyRadioMenuItem<V, P : Property<V>>(val property: P, val value: V, text: String) : SelectMenuItemBase

Similar to a RadioButton, but instead of a ToggleGroup, it is backed by a property which decides which menu item is selected.

Constructors

Link copied to clipboard
constructor(property: P, value: V, text: String)

Properties

Link copied to clipboard
val property: P
Link copied to clipboard
open override var selected: Boolean
Link copied to clipboard
Link copied to clipboard
val value: V

This menu item is selected when property.value == value

Functions

Link copied to clipboard
open override fun toggle()