disclosure
fun <C : HTMLElement> RenderContext.disclosure(classes: String? = null, id: String? = null, scope: ScopeContext.() -> Unit = {}, tag: TagFactory<Tag<C>>, initialize: Disclosure<C>.() -> Unit): Tag<C>
Factory function to create a Disclosure.
API-Sketch:
disclosure() {
// inherited by `OpenClose`
val openState: DatabindingProperty<Boolean>
val opened: Flow<Boolean>
val close: SimpleHandler<Unit>
val open: SimpleHandler<Unit>
val toggle: SimpleHandler<Unit>
disclosureButton() { }
disclosurePanel() {
disclosureCloseButton() {}
}
}
Content copied to clipboard
For more information refer to the official documentation
fun RenderContext.disclosure(classes: String? = null, id: String? = null, scope: ScopeContext.() -> Unit = {}, initialize: Disclosure<HTMLDivElement>.() -> Unit): Tag<HTMLDivElement>
Factory function to create a Disclosure with a HTMLDivElement as default root Tag.
API-Sketch:
disclosure() {
// inherited by `OpenClose`
val openState: DatabindingProperty<Boolean>
val opened: Flow<Boolean>
val close: SimpleHandler<Unit>
val open: SimpleHandler<Unit>
val toggle: SimpleHandler<Unit>
disclosureButton() { }
disclosurePanel() {
disclosureCloseButton() {}
}
}
Content copied to clipboard
For more information refer to the official documentation