MenuLink

open class MenuLink(styling: Style<BoxParams>) : MenuChild, EventProperties<HTMLAnchorElement> , ElementProperties<A> , FormProperties, TooltipProperties

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

A link entry is a special kind of linkButton 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

MenuLink
Link copied to clipboard
js
fun MenuLink(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<A.() -> 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<HTMLAnchorElement>.() -> Unit>
This property enables the client to access all events offered by the underlying HTML element.
href
Link copied to clipboard
js
val href: ComponentProperty<String?>
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>
target
Link copied to clipboard
js
val target: ComponentProperty<String?>
text
Link copied to clipboard
js
val text: ComponentProperty<String?>