class SimpleBrowserMenuCheckbox : BrowserMenuItem
(source)
A simple browser menu checkbox.
label
- The visible label of this menu item.
initialState
- The initial value the checkbox should have.
listener
- Callback to be invoked when this menu item is checked.
SimpleBrowserMenuCheckbox(: String, : Boolean = false, : (Boolean) -> Unit)
A simple browser menu checkbox. |
var visible: () -> Boolean
Lambda expression that returns true if this item should be shown in the menu. Returns false if this item should be hidden. |
fun bind(: BrowserMenu, : View): Unit
Called by the browser menu to display the data of this item using the passed view. |
|
fun getLayoutResource(): <ERROR CLASS>
Returns the layout resource ID of the layout to be inflated for showing a menu item of this type. |