MenuEntry

open class MenuEntry(styling: Style<BoxParams>) : MenuChild, EventProperties<HTMLButtonElement> , FormProperties

This class combines the configuration and the core rendering of a MenuEntry.

An entry is a special kind of button consisting of a label and an optional icon used in dropdown menus. Just like a regular button it is clickable and can be enabled/disabled.

It can be configured with an icon, a text and can be enabled or disabled the same way as a regular button.

Parameters

styling

Optional style to be applied to the underlying button-element

Constructors

MenuEntry
Link copied to clipboard
js
fun MenuEntry(styling: Style<BoxParams> = {})
Optional style to be applied to the underlying button-element

Functions

enabled
Link copied to clipboard
js
open override fun enabled(value: Boolean)
open override fun enabled(value: Flow<Boolean>)
render
Link copied to clipboard
js
open override fun render(context: RenderContext)

Properties

disabled
Link copied to clipboard
js
open override val disabled: DynamicComponentProperty<Boolean>
events
Link copied to clipboard
js
open override val events: ComponentProperty<EventContext<HTMLButtonElement>.() -> Unit>
This property enables the client to access all events offered by the underlying HTML element.
icon
Link copied to clipboard
js
val icon: ComponentProperty<Icons.() -> IconDefinition?>
text
Link copied to clipboard
js
val text: ComponentProperty<String>