CloseButtonMixin

class CloseButtonMixin(val closeButtonPrefix: String = "close-button", defaultStyle: Style<BasicParams>) : CloseButtonProperty

Default implementation of the CloseButtonProperty interface in order to apply this as mixin for a component

Parameters

closeButtonPrefix

the prefix for the generated CSS class

defaultStyle

define the default styling of the button fitting for the implementing component needs (the placement within the component's space for example)

Constructors

Link copied to clipboard
fun CloseButtonMixin(closeButtonPrefix: String = "close-button", defaultStyle: Style<BasicParams>)

Properties

Link copied to clipboard
open override val closeButtonIcon: ComponentProperty<Icons.() -> IconDefinition>
Link copied to clipboard
open override val closeButtonPrefix: String
Link copied to clipboard
open override val closeButtonRendering: ComponentProperty<RenderContext.() -> DomListener<MouseEvent, HTMLElement>>
Link copied to clipboard
open override val closeButtonStyle: ComponentProperty<Style<BasicParams>>
Link copied to clipboard
open override val hasCloseButton: ComponentProperty<Boolean>