CloseButtonMixin

class CloseButtonMixin(closeButtonPrefix: String, 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

CloseButtonMixin
Link copied to clipboard
js
fun CloseButtonMixin(closeButtonPrefix: String = "close-button", defaultStyle: Style<BasicParams>)
the prefix for the generated CSS class

Functions

equals
Link copied to clipboard
js
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
js
open fun hashCode(): Int
toString
Link copied to clipboard
js
open fun toString(): String

Properties

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