Modal

class Modal(id: String?) : OpenClose

This class provides the building blocks to implement a modal.

Use modal functions to create an instance, set up the needed Hooks or Propertys and refine the component by using the further factory methods offered by this class.

For more information refer to the official documentation

Constructors

Link copied to clipboard
constructor(id: String?)

Types

Link copied to clipboard
inner class ModalPanel<C : HTMLElement>(tag: Tag<C>, explicitId: String? = null) : Tag<C>

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val job: Job
Link copied to clipboard
Link copied to clipboard
val opened: Flow<Boolean>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun errorHandler(cause: Throwable)
Link copied to clipboard
open infix fun <A> Flow<A>.handledBy(handler: Handler<A>)
open infix fun <A> Flow<A>.handledBy(execute: suspend (A) -> Unit): Job
open infix fun <E : Event> Flow<E>.handledBy(handler: Handler<Unit>)
open infix fun <E : Event> Flow<E>.handledBy(execute: suspend (E) -> Unit): Job
Link copied to clipboard
fun init()
Link copied to clipboard
fun Modal.modalPanel(classes: String? = null, id: String? = null, internalScope: ScopeContext.() -> Unit = {}, initialize: Modal.ModalPanel<HTMLDivElement>.() -> Unit)

Factory function to create a modalPanel with a HTMLDivElement as default Tag.

fun <C : HTMLElement> Modal.modalPanel(classes: String? = null, id: String? = null, internalScope: ScopeContext.() -> Unit = {}, tag: TagFactory<Tag<C>>, initialize: Modal.ModalPanel<C>.() -> Unit)

Factory function to create a modalPanel.