PropertyToggleMenuItem

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

Similar to a ToggleMenuItem, but instead of using a ToggleGroup, it uses a property to determine which 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()