MenuEntry

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

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, styles: MenuStyles)
tooltip
Link copied to clipboard
js
open override fun tooltip(vararg text: String, build: TooltipComponent.() -> Unit)
open override fun tooltip(styling: BasicParams.() -> Unit, text: String?, baseClass: StyleClass, id: String, prefix: String, build: TooltipComponent.() -> Unit)

Properties

disabled
Link copied to clipboard
js
open override val disabled: DynamicComponentProperty<Boolean>
element
Link copied to clipboard
js
open override val element: ComponentProperty<Button.() -> Unit>
This property enables the client to access the deeper features of an element even though the component itself does not offer an appropriate functionality.
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?>
renderTooltip
Link copied to clipboard
js
open override val renderTooltip: ComponentProperty<Tag<HTMLElement>.() -> Unit>
text
Link copied to clipboard
js
val text: ComponentProperty<String?>