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

Link copied to clipboard
fun MenuLink(styling: Style<BoxParams> = {})

Functions

Link copied to clipboard
open override fun enabled(value: Boolean)
open override fun enabled(value: Flow<Boolean>)
Link copied to clipboard
open override fun render(context: RenderContext, styles: MenuStyles)
Link copied to clipboard
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

Link copied to clipboard
open override val disabled: DynamicComponentProperty<Boolean>
Link copied to clipboard
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. A client should use this with caution, as it might massively change the default behaviour of the component!

Link copied to clipboard
open override val events: ComponentProperty<EventContext<HTMLAnchorElement>.() -> Unit>

This property enables the client to access all events offered by the underlying HTML element.

Link copied to clipboard
val href: ComponentProperty<String?>
Link copied to clipboard
val icon: ComponentProperty<Icons.() -> IconDefinition?>
Link copied to clipboard
open override val renderTooltip: ComponentProperty<Tag<HTMLElement>.() -> Unit>
Link copied to clipboard
val target: ComponentProperty<String?>
Link copied to clipboard
val text: ComponentProperty<String?>