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!
}
}See also
Constructors
LinkButtonComponent
Link copied to clipboard
fun LinkButtonComponent()
Content copied to clipboard
Functions
Properties
centerIconStyle
Link copied to clipboard
centerSpinnerStyle
Link copied to clipboard
disabled
Link copied to clipboard
element
Link copied to clipboard
events
Link copied to clipboard
open override val events: ComponentProperty<EventContext<HTMLButtonElement>.() -> Unit>
Content copied to clipboard
icon
Link copied to clipboard
iconPlacement
Link copied to clipboard
val iconPlacement: ComponentProperty<PushButtonComponent.IconPlacementContext.() -> PushButtonComponent.IconPlacement>
Content copied to clipboard
leftIconStyle
Link copied to clipboard
leftSpinnerStyle
Link copied to clipboard
renderTooltip
Link copied to clipboard
open override val renderTooltip: ComponentProperty<Tag<HTMLElement>.() -> Unit>
Content copied to clipboard
rightIconStyle
Link copied to clipboard
rightSpinnerStyle
Link copied to clipboard
size
Link copied to clipboard
type
Link copied to clipboard
variant
Link copied to clipboard
val variant: ComponentProperty<PushButtonComponent.VariantContext.() -> PushButtonComponent.ButtonVariant>
Content copied to clipboard