VDom

class VDom(engine: VDomEngine, val component: Component<*>? = null) : FlowContent

Constructors

Link copied to clipboard
constructor(engine: VDomEngine, component: Component<*>? = null)

Properties

Link copied to clipboard
open override val attributes: MutableMap<String, String>
Link copied to clipboard
Link copied to clipboard
val component: Component<*>? = null
Link copied to clipboard
open override val consumer: VDomTagConsumer
Link copied to clipboard
open override val emptyTag: Boolean = false
Link copied to clipboard
open override val inlineTag: Boolean = false
Link copied to clipboard
open override val namespace: String? = null
Link copied to clipboard
open override val tagName: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
open fun comment(s: String)
Link copied to clipboard
inline fun <C : Component<Any?>> Tag.comp(noinline component: (NoProps) -> C): ComponentRef<C>

Adds a parameterless child component to the current tag

inline fun <P, C : Component<P>> Tag.comp(props: P, noinline component: (Ctx<P>) -> C): ComponentRef<C>

Adds a child component to the current tag

Link copied to clipboard
fun FlowContent.custom(name: String, block: FlowContent.() -> Unit = {})
Link copied to clipboard
inline fun <PAYLOAD : Any> Tag.DndDragHandle(payload: PAYLOAD, host: Component<*>? = null, key: String? = null): ComponentRef<DndDragHandleComponent<PAYLOAD>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun entity(e: Entities)
Link copied to clipboard
Link copied to clipboard
fun Tag.JoinedPageTitle(parts: () -> Iterable<String?>)
fun Tag.JoinedPageTitle(glue: String, parts: () -> Iterable<String?>)
Link copied to clipboard
fun <T> Tag.ListField(items: List<T>, onChange: (List<T>) -> Unit, customize: ListFieldComponent.PropsBuilder<T>.() -> Unit): ComponentRef<ListFieldComponent<T>>
Link copied to clipboard
fun Tag.mini(handle: ModalsManager.Handle, header: RenderFn, content: RenderFn, okText: RenderFn = { +"Yes" }, cancelText: RenderFn = { +"No" }, onResult: (OkCancelModal.Result) -> Unit): ComponentRef<OkCancelModal>
Link copied to clipboard
Link copied to clipboard
fun FlowContent.nl2br(content: String?)

Renders the content as the text node of the current FlowContent while replacing newlines with

Link copied to clipboard
fun Tag.OkCancelModal(handle: ModalsManager.Handle, transition: FadingModal.Transition = FadingModal.Transition(), view: OkCancelModal.View, onResult: (OkCancelModal.Result) -> Unit): ComponentRef<OkCancelModal>
Link copied to clipboard
fun Tag.PageTitle(provider: () -> String): ComponentRef<PageTitle>
fun Tag.PageTitle(title: String)
Link copied to clipboard
fun Tag.PaginationEpp(epp: Int, options: Set<Int> = setOf(10, 20, 50, 100, 500), onChange: (Int) -> Unit): ComponentRef<PaginationEpp>
Link copied to clipboard
fun Tag.PaginationPages(activePage: Int, totalPages: Number?, style: PaginationPages.Style = PaginationPages.Style.default, onChange: (Int) -> Unit): ComponentRef<PaginationPages>
Link copied to clipboard
fun Tag.Popup(content: DIV.() -> Unit): ComponentRef<Popup>
Link copied to clipboard
fun Tag.PopupComponent(target: HTMLElement, positioning: (target: HTMLElement, contentSize: Vector2D) -> Vector2D, handle: PopupsManager.Handle, content: PopupRenderer): ComponentRef<PopupComponent>
Link copied to clipboard
Link copied to clipboard
fun render(builder: VDom.() -> Any?): dynamic
Link copied to clipboard
fun <T> FlowContent.renderPagination(paged: Paged<T>, filter: PagedSearchFilter, onChange: (PagedSearchFilter) -> Unit)
Link copied to clipboard
fun <T> FlowContent.renderPaginationAsAttachedSegment(paged: Paged<T>, filter: PagedSearchFilter, onChange: (PagedSearchFilter) -> Unit)
Link copied to clipboard

The router component displays the view that is associated with the ActiveRoute of the given Router

Link copied to clipboard
fun <T> Tag.SelectField(value: T, onChange: (T) -> Unit, configure: SelectFieldComponent.Config<T>.() -> Unit = {}): ComponentRef<SelectFieldComponent<T>>
Link copied to clipboard
fun Tag.small(handle: ModalsManager.Handle, header: RenderFn, content: RenderFn, okText: RenderFn = { +"Yes" }, cancelText: RenderFn = { +"No" }, onResult: (OkCancelModal.Result) -> Unit): ComponentRef<OkCancelModal>
Link copied to clipboard
fun Tag.SrcSetImage(src: String, sizes: ImageSizes = ImageSizes.default, alt: String = "", configure: IMG.() -> Unit = {}): ComponentRef<SrcSetImage>
Link copied to clipboard
inline fun <P> VDom.subscribingTo(stream: Stream<P>): ReadOnlyProperty<Any?, P>
Link copied to clipboard
open fun text(n: Number)
open fun text(s: String)
Link copied to clipboard
fun Tag.text(build: DropdownMenu.PropsBuilder.() -> Unit)
Link copied to clipboard
fun Tag.TextDropdownMenu(display: RenderFn, items: List<DropdownMenu.Item>): ComponentRef<DropdownMenu>
Link copied to clipboard
fun Tag.tiny(handle: ModalsManager.Handle, header: RenderFn, content: RenderFn, okText: RenderFn = { +"Yes" }, cancelText: RenderFn = { +"No" }, onResult: (OkCancelModal.Result) -> Unit): ComponentRef<OkCancelModal>
Link copied to clipboard
fun <T> Tag.UiCheckboxField(value: T, onChange: (T) -> Unit, off: T, on: T, builder: UiCheckBoxComponent.Options<T>.() -> Unit = {}): ComponentRef<UiCheckBoxComponent<T, UiCheckBoxComponent.Props<T>>>
Link copied to clipboard
fun <T> Tag.UiInputField(value: T, onChange: (T) -> Unit, toStr: (T) -> String, fromStr: (String) -> T, builder: UiInputFieldComponent.Options<T>.() -> Unit = {}): ComponentRef<UiInputFieldComponent<T, UiInputFieldComponent.Props<T>>>
Link copied to clipboard
fun Tag.UiTextArea(value: String, onChange: (String) -> Unit, builder: UiTextAreaComponent.Options.() -> Unit = {}): ComponentRef<UiTextAreaComponent>
Link copied to clipboard
open operator fun String.unaryPlus()
open operator fun Entities.unaryPlus()
Link copied to clipboard
inline fun <P> VDom.value(initial: P): FunctionalComponentStateProperty<P>
inline fun <P> VDom.value(initial: P, noinline onChange: (P) -> Unit): FunctionalComponentStateProperty<P>