Collapsable Component
class CollapsableComponent(ctx: Ctx<CollapsableComponent.Props>) : Component<CollapsableComponent.Props>
Content copied to clipboard
Constructors
Types
Link copied to clipboard
class Builder( var header: DIV.(CollapsableComponent.HeaderCtx) -> Unit? = null, var content: RenderFunc<DIV> = {}, var collapsed: Boolean = true)
Content copied to clipboard
Link copied to clipboard
data class Props( val header: DIV.(CollapsableComponent.HeaderCtx) -> Unit?, val content: RenderFunc<DIV>, val collapsed: Boolean)
Content copied to clipboard
Functions
Link copied to clipboard
open override fun shouldRedraw(nextProps: CollapsableComponent.Props): Boolean
Content copied to clipboard
Returns 'true' when the component should redraw.
Link copied to clipboard
fun <T> subscribingTo(stream: Stream<T>, onNext: (T) -> Unit? = null): ReadOnlyProperty<Any?, T>
Content copied to clipboard
Creates a property that is subscribed to a stream.
Link copied to clipboard
Triggers a redraw
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The life-cycle LifeCycle that the component exposes
Link copied to clipboard