Link Button Component
This class extends the PushButtonComponent and adds link specific properties to it.
Example:
linkButton {
text("fritz2") // define the default label
href("//www.fritz2.dev") // specifies the URL of the page the link goes to
target("_blank") // specifies where to open the linked document
icon { fromTheme { check } } // set up an icon
iconPlacement { right } // place the icon on the right side (``left`` is the default)
loading(someStore.loading) // pass in some [Flow<Boolean>] that shows a spinner if ``true`` is passed
loadingText("saving") // show an _alternate_ label, if store sends ``true``
disabled(true) // disable the button; could also be a ``Flow<Boolean>`` for dynamic disabling
element {
// exposes the underlying HTML button element for direct access. Use with caution!
}
}Content copied to clipboard
See also
Constructors
Functions
Properties
Link copied to clipboard
open override val events: ComponentProperty<EventContext<HTMLButtonElement>.() -> Unit>
Content copied to clipboard
Link copied to clipboard
val iconPlacement: ComponentProperty<PushButtonComponent.IconPlacementContext.() -> PushButtonComponent.IconPlacement>
Content copied to clipboard
Link copied to clipboard
open override val renderTooltip: ComponentProperty<Tag<HTMLElement>.() -> Unit>
Content copied to clipboard
Link copied to clipboard
val variant: ComponentProperty<PushButtonComponent.VariantContext.() -> PushButtonComponent.ButtonVariant>
Content copied to clipboard