Code

open class Code(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: Code.() -> Unit? = null) : Tag(source)

Simple component rendered as code.

Parameters

content

element text

rich

determines if content can contain HTML code

align

content align

className

CSS class names

init

an initializer extension function

Constructors

Link copied to clipboard
constructor(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: Code.() -> Unit? = null)

Properties

Link copied to clipboard
var align: Align?

Text align.

Link copied to clipboard

CSS flexbox/grid content alignment.

Link copied to clipboard

CSS flexbox/grid items alignment.

Link copied to clipboard

CSS flexbox items self-alignment.

Link copied to clipboard

Background of the current component.

Link copied to clipboard
open var border: Border?

Border of the current component.

Link copied to clipboard
open var borderBottom: Border?

Bottom border of the current component.

Link copied to clipboard
open var borderLeft: Border?

Left border of the current component.

Link copied to clipboard

CSS border radius.

Link copied to clipboard

List of CSS border radius values.

Link copied to clipboard
open var borderRight: Border?

Right border of the current component.

Link copied to clipboard
open var borderTop: Border?

Top border of the current component.

Link copied to clipboard
open var bottom: CssSize?

Bottom edge of the current component.

Link copied to clipboard
open var boxShadow: BoxShadow?

Box shadow of the current component.

Link copied to clipboard

List of box shadows of the current component.

Link copied to clipboard
open var clear: Clear?

CSS clear float of the current component.

Link copied to clipboard
open var color: Color?

Text color for the current component.

Link copied to clipboard
open var colorHex: Int?

Text color for the current component given in hex format (write only).

Link copied to clipboard
open var colorName: Col?

Text color for the current component given with named constant (write only).

Link copied to clipboard
open override var content: String?

Text content of the tag.

Link copied to clipboard
open var cursor: Cursor?

CSS cursor shape over the current component.

Link copied to clipboard
open var display: Display?

CSS display of the current component.

Link copied to clipboard

Determines if the current widget is draggable.

Link copied to clipboard
Link copied to clipboard
open var flexBasis: CssSize?

CSS flexbox item basis.

Link copied to clipboard

CSS flexbox direction.

Link copied to clipboard
open var flexGrow: Int?

CSS flexbox item grow.

Link copied to clipboard
open var flexShrink: Int?

CSS flexbox item shrink.

Link copied to clipboard
open var flexWrap: FlexWrap?

CSS flexbox wrap mode.

Link copied to clipboard
open var float: PosFloat?

CSS position float of the current component.

Link copied to clipboard
open var fontFamily: String?

CSS font family of the current component.

Link copied to clipboard
open var fontSize: CssSize?

CSS font size of the current component.

Link copied to clipboard
open var fontStyle: FontStyle?

CSS font style of the current component.

Link copied to clipboard

CSS font variant of the current component.

Link copied to clipboard

CSS font weight of the current component.

Link copied to clipboard
open var gridArea: String?

CSS grid area.

Link copied to clipboard

CSS grid auto columns.

Link copied to clipboard

CSS grid auto flow.

Link copied to clipboard
open var gridAutoRows: String?

CSS grid auto rows.

Link copied to clipboard

CSS grid column end.

Link copied to clipboard
open var gridColumnGap: Int?

CSS grid column gap.

Link copied to clipboard
open var gridColumnStart: Int?

CSS grid column start.

Link copied to clipboard
open var gridRowEnd: String?

CSS grid row end.

Link copied to clipboard
open var gridRowGap: Int?

CSS grid row gap.

Link copied to clipboard
open var gridRowStart: Int?

CSS grid row start.

Link copied to clipboard

CSS grid areas template.

Link copied to clipboard

CSS grid columns template.

Link copied to clipboard

CSS grid rows template.

Link copied to clipboard
open var height: CssSize?

Height of the current component.

Link copied to clipboard
var id: String?

An ID attribute of generated HTML element.

Link copied to clipboard

CSS flexbox/grid content justification.

Link copied to clipboard

CSS grid items justification.

Link copied to clipboard

CSS grid items self-justification.

Link copied to clipboard
var kvscope: dynamic
Link copied to clipboard
open var left: CssSize?

Left edge of the current component.

Link copied to clipboard

CSS Text letter spacing of the current component.

Link copied to clipboard
open var lineBreak: LineBreak?

CSS line break of the current component.

Link copied to clipboard
open var lineHeight: CssSize?

CSS Text line height of the current component.

Link copied to clipboard
open var listStyle: ListStyle?

List style of the current component.

Link copied to clipboard
open var margin: CssSize?

Margin of the current component.

Link copied to clipboard

Bottom margin of the current component.

Link copied to clipboard
open var marginLeft: CssSize?

Left margin of the current component.

Link copied to clipboard
open var marginRight: CssSize?

Right margin of the current component.

Link copied to clipboard
open var marginTop: CssSize?

Top margin of the current component.

Link copied to clipboard
open var maxHeight: CssSize?

Maximal height of the current component.

Link copied to clipboard
open var maxWidth: CssSize?

Maximal width of the current component.

Link copied to clipboard
open var minHeight: CssSize?

Minimal height of the current component.

Link copied to clipboard
open var minWidth: CssSize?

Minimal width of the current component.

Link copied to clipboard
open var opacity: Double?

Opacity of the current component.

Link copied to clipboard
open var order: Int?

CSS flexbox item order.

Link copied to clipboard
open var outline: Outline?

Outline of the current component.

Link copied to clipboard
open var overflow: Overflow?

CSS overflow of the current component.

Link copied to clipboard

CSS overflow-wrap of the current component.

Link copied to clipboard
open var overflowX: Overflow?

CSS overflow-x of the current component.

Link copied to clipboard
open var overflowY: Overflow?

CSS overflow-y of the current component.

Link copied to clipboard
open var padding: CssSize?

Padding of the current component.

Link copied to clipboard

Bottom padding of the current component.

Link copied to clipboard
open var paddingLeft: CssSize?

Left padding of the current component.

Link copied to clipboard

Right padding of the current component.

Link copied to clipboard
open var paddingTop: CssSize?

Top padding of the current component.

Link copied to clipboard
open override var parent: Container?

Parent of the current component.

Link copied to clipboard
Link copied to clipboard
var popoverOptions: dynamic
Link copied to clipboard
open var position: Position?

CSS position of the current component.

Link copied to clipboard
open var resize: Resize?

CSS resize of the current component.

Link copied to clipboard
open override var rich: Boolean

Determines if content can contain HTML code.

Link copied to clipboard
open var right: CssSize?

Right edge of the current component.

Link copied to clipboard
var role: String?

A role attribute of generated HTML element.

Link copied to clipboard

A tabindex attribute of generated HTML element.

Link copied to clipboard
open override var template: (Any?) -> String?

Handlebars template.

Link copied to clipboard
open var templateData: Any?

Handlebars template data object.

Link copied to clipboard
open override var templates: Map<String, (Any?) -> String>

Handlebars templates for i18n.

Link copied to clipboard
open var textAlign: TextAlign?

CSS Text align of the current component.

Link copied to clipboard

CSS Text decoration of the current component.

Link copied to clipboard

CSS Text direction of the current component.

Link copied to clipboard
open var textIndent: CssSize?

CSS Text indent of the current component.

Link copied to clipboard

CSS Text overflow of the current component.

Link copied to clipboard

CSS Text shadow of the current component.

Link copied to clipboard

CSS Text transform of the current component.

Link copied to clipboard

A title attribute of generated HTML element.

Link copied to clipboard
Link copied to clipboard
var tooltipOptions: dynamic
Link copied to clipboard
open var top: CssSize?

Top edge of the current component.

Link copied to clipboard

CSS transition effect for the current component.

Link copied to clipboard

List of CSS transition effects for the current component.

Link copied to clipboard
var type: TAG

Tag type.

Link copied to clipboard

CSS Text unicode-bidi of the current component.

Link copied to clipboard

CSS Text vertical align of the current component.

Link copied to clipboard
open override var visible: Boolean

Visibility state of the current component.

Link copied to clipboard

CSS Text white space of the current component.

Link copied to clipboard
open var width: CssSize?

Width of the current component.

Link copied to clipboard
open var wordBreak: WordBreak?

CSS word break of the current component.

Link copied to clipboard
open var wordSpacing: CssSize?

CSS Text word spacing of the current component.

Link copied to clipboard
open var zIndex: Int?

Z-index of the current component.

Functions

Link copied to clipboard
open override fun add(child: Component)

Adds given component to the current container.

open override fun add(position: Int, child: Component)

Adds given component to the current container at the given position.

Link copied to clipboard
open override fun addAfterCreateHook(hook: (VNode) -> Unit): Boolean

The supplied function is called after the widget DOM element is created.

Link copied to clipboard
open override fun addAfterDestroyHook(hook: () -> Unit): Boolean

The supplied function is called after the widget is removed from the DOM.

Link copied to clipboard
open override fun addAfterInsertHook(hook: (VNode) -> Unit): Boolean

The supplied function is called after the widget is inserted into the DOM.

Link copied to clipboard
open override fun addAll(children: List<Component>)

Adds a list of components to the current container.

Link copied to clipboard
open override fun addBeforeDisposeHook(hook: () -> Unit): Boolean

The supplied function is called before the widget is disposed.

Link copied to clipboard
open override fun addCssClass(css: String)

Adds given value to the set of CSS classes generated in html code of current component.

Link copied to clipboard
open override fun addCssStyle(css: Style)

Adds given style object to the set of CSS classes generated in html code of current component.

Link copied to clipboard
fun Container.address(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: Address.() -> Unit? = null): Address

DSL builder extension function.

Link copied to clipboard
open override fun addSurroundingCssClass(css: String)

Adds given value to the set of CSS classes generated in html code of parent component.

Link copied to clipboard
open override fun addSurroundingCssStyle(css: Style)

Adds given style object to the set of CSS classes generated in html code of parent component.

Link copied to clipboard
fun Container.article(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: Article.() -> Unit? = null): Article

DSL builder extension function.

Link copied to clipboard
fun Container.b(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: B.() -> Unit? = null): B

DSL builder extension function.

Link copied to clipboard
open fun blur()

Makes the element blur.

Link copied to clipboard
fun Container.br(className: String? = null, init: Br.() -> Unit? = null): Br

DSL builder extension function.

Link copied to clipboard
fun Container.button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.PRIMARY, type: ButtonType = ButtonType.BUTTON, disabled: Boolean = false, separator: String? = null, labelFirst: Boolean = true, className: String? = null, init: Button.() -> Unit? = null): Button

DSL builder extension function.

Link copied to clipboard
fun Container.canvas(canvasWidth: Int? = null, canvasHeight: Int? = null, className: String? = null, init: Canvas.() -> Unit? = null): Canvas

DSL builder extension function.

Link copied to clipboard
fun Container.checkBox(value: Boolean = false, name: String? = null, labelFirst: Boolean = false, label: String? = null, rich: Boolean = false, init: CheckBox.() -> Unit? = null): CheckBox

DSL builder extension function.

Link copied to clipboard
fun Container.checkBoxInput(value: Boolean = false, className: String? = null, init: CheckBoxInput.() -> Unit? = null): CheckBoxInput

DSL builder extension function.

Link copied to clipboard
open override fun clearAfterCreateHooks()

Remove all after create hooks functions.

Link copied to clipboard
open override fun clearAfterDestroyHooks()

Remove all after destroy hooks functions.

Link copied to clipboard
open override fun clearAfterInsertHooks()

Remove all after insert hooks functions.

Link copied to clipboard
open override fun clearBeforeDisposeHooks()

Remove all before dispose hooks functions.

Link copied to clipboard

Clears D&D data for the current widget. It also makes it not draggable.

Link copied to clipboard
fun Container.code(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: Code.() -> Unit? = null): Code

DSL builder extension function.

Link copied to clipboard
fun Container.customTag(elementName: String, content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, attributes: Map<String, String>? = null, init: CustomTag.() -> Unit? = null): CustomTag

DSL builder extension function.

Link copied to clipboard
open fun dispatchEvent(type: String, eventInitDict: CustomEventInit): Boolean?

Dispatches a custom event.

Link copied to clipboard
open override fun disposeAll()

Removes all children from the current container and disposes them.

Link copied to clipboard
fun Container.div(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: Div.() -> Unit? = null): Div

DSL builder extension function.

Link copied to clipboard
fun Container.dockPanel(className: String? = null, init: DockPanel.() -> Unit? = null): DockPanel

DSL builder extension function.

Link copied to clipboard
fun Container.em(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: Em.() -> Unit? = null): Em

DSL builder extension function.

Link copied to clipboard
fun Container.fieldLabel(forId: String, content: String? = null, rich: Boolean = false, className: String? = null, init: FieldLabel.() -> Unit? = null): FieldLabel

DSL builder extension function.

Link copied to clipboard
fun Container.fieldset(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: Fieldset.() -> Unit? = null): Fieldset

DSL builder extension function.

Link copied to clipboard
fun Container.fieldsetPanel(legend: String? = null, className: String? = null, init: FieldsetPanel.() -> Unit? = null): FieldsetPanel

DSL builder extension function.

Link copied to clipboard
fun Container.figcaption(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: Figcaption.() -> Unit? = null): Figcaption

DSL builder extension function.

Link copied to clipboard
fun Container.figure(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: Figure.() -> Unit? = null): Figure

DSL builder extension function.

Link copied to clipboard
fun Container.flexPanel(direction: FlexDirection? = null, wrap: FlexWrap? = null, justify: JustifyContent? = null, alignItems: AlignItems? = null, alignContent: AlignContent? = null, spacing: Int? = null, useWrappers: Boolean = false, className: String? = null, init: FlexPanel.() -> Unit? = null): FlexPanel

DSL builder extension function.

Link copied to clipboard
open override fun focus()

Makes the element focused.

Link copied to clipboard
fun Container.footer(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: Footer.() -> Unit? = null): Footer

DSL builder extension function.

Link copied to clipboard
fun Container.form(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, condensed: Boolean = false, horizRatio: FormHorizontalRatio = FormHorizontalRatio.RATIO_2, className: String? = null, init: FormPanel<Map<String, Any?>>.() -> Unit? = null): FormPanel<Map<String, Any?>>

DSL builder extension function.

Link copied to clipboard
inline fun <K : Any> Container.formPanel(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, condensed: Boolean = false, horizRatio: FormHorizontalRatio = FormHorizontalRatio.RATIO_2, className: String? = null, customSerializers: Map<KClass<*>, KSerializer<*>>? = null, noinline init: FormPanel<K>.() -> Unit? = null): FormPanel<K>

DSL builder extension function.

Link copied to clipboard
fun <T> Container.genericRadioGroup(options: List<Pair<T, String>>? = null, value: T? = null, name: String? = null, inline: Boolean = false, label: String? = null, rich: Boolean = false, toStr: (T) -> String = { it.toString() }, fromStr: (String) -> T? = { @Suppress("UNCHECKED_CAST") it as? T }, init: GenericRadioGroup<T>.() -> Unit? = null): GenericRadioGroup<T>

DSL builder extension function.

Link copied to clipboard
fun <T> Container.genericRadioGroupInput(options: List<Pair<T, String>>? = null, value: T? = null, name: String? = null, inline: Boolean = false, toStr: (T) -> String = { it.toString() }, fromStr: (String) -> T? = { @Suppress("UNCHECKED_CAST") it as? T }, init: GenericRadioGroupInput<T>.() -> Unit? = null): GenericRadioGroupInput<T>

DSL builder extension function.

Link copied to clipboard
open override fun getAttribute(name: String): String?

Returns the value of an additional attribute.

Link copied to clipboard
open override fun getChildren(): List<Component>

Returns a list of children of the current container.

Link copied to clipboard
open override fun getElement(): HTMLElement?

Returns DOM element bound to the current component.

Link copied to clipboard
open override fun getElementD(): dynamic

Returns DOM element bound to the current component as a dynamic type.

Link copied to clipboard
open fun getSnStyle(): dynamic

Returns CSS style attributes.

Link copied to clipboard
fun getStyle(name: String): String?

Returns the value of a custom CSS style.

Link copied to clipboard
fun Container.gridPanel(autoColumns: String? = null, autoRows: String? = null, autoFlow: GridAutoFlow? = null, templateColumns: String? = null, templateRows: String? = null, templateAreas: List<String>? = null, columnGap: Int? = null, rowGap: Int? = null, justifyItems: JustifyItems? = null, alignItems: AlignItems? = null, justifyContent: JustifyContent? = null, alignContent: AlignContent? = null, useWrappers: Boolean = false, className: String? = null, init: GridPanel.() -> Unit? = null): GridPanel

DSL builder extension function.

Link copied to clipboard
fun Container.h1(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: H1.() -> Unit? = null): H1

DSL builder extension function.

Link copied to clipboard
fun Container.h2(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: H2.() -> Unit? = null): H2

DSL builder extension function.

Link copied to clipboard
fun Container.h3(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: H3.() -> Unit? = null): H3

DSL builder extension function.

Link copied to clipboard
fun Container.h4(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: H4.() -> Unit? = null): H4

DSL builder extension function.

Link copied to clipboard
fun Container.h5(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: H5.() -> Unit? = null): H5

DSL builder extension function.

Link copied to clipboard
fun Container.h6(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: H6.() -> Unit? = null): H6

DSL builder extension function.

Link copied to clipboard
open override fun hasCssClass(css: String): Boolean

Checks whether the given value is present in the set of CSS classes.

Link copied to clipboard
fun Container.header(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: Header.() -> Unit? = null): Header

DSL builder extension function.

Link copied to clipboard
open fun hide()

Makes current widget invisible.

Link copied to clipboard
fun Container.hPanel(wrap: FlexWrap? = null, justify: JustifyContent? = null, alignItems: AlignItems? = null, spacing: Int? = null, useWrappers: Boolean = false, className: String? = null, init: HPanel.() -> Unit? = null): HPanel

DSL builder extension function.

Link copied to clipboard
fun Container.i(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: I.() -> Unit? = null): I

DSL builder extension function.

Link copied to clipboard
fun Container.icon(icon: String, init: Icon.() -> Unit? = null): Icon

DSL builder extension function.

Link copied to clipboard
fun Container.iframe(src: String? = null, srcdoc: String? = null, name: String? = null, iframeWidth: Int? = null, iframeHeight: Int? = null, sandbox: Set<Sandbox>? = null, className: String? = null, init: Iframe.() -> Unit? = null): Iframe

DSL builder extension function.

Link copied to clipboard
fun Container.image(src: ResString?, alt: String? = null, responsive: Boolean = false, shape: ImageShape? = null, centered: Boolean = false, className: String? = null, init: Image.() -> Unit? = null): Image

DSL builder extension function.

Link copied to clipboard
fun Widget.inheritingStyle(selector: String? = null, pClass: PClass? = null, pElement: PElement? = null, mediaQuery: String? = null, parentStyle: Style? = null, init: InheritingStyle.() -> Unit? = null): InheritingStyle

DSL builder extension function.

Link copied to clipboard
fun Container.input(type: InputType? = null, className: String? = null, init: Input.() -> Unit? = null): Input

DSL builder extension function.

Link copied to clipboard
open operator fun invoke(vararg children: Component)

Operator function for adding children in a DSL style.

Link copied to clipboard
fun Container.label(content: String? = null, rich: Boolean = false, forId: String? = null, className: String? = null, init: Label.() -> Unit? = null): Label

DSL builder extension function.

Link copied to clipboard
fun Container.li(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: Li.() -> Unit? = null): Li

DSL builder extension function.

Link copied to clipboard
fun Container.link(label: String, url: String? = null, icon: String? = null, image: ResString? = null, separator: String? = null, labelFirst: Boolean = true, target: String? = null, dataNavigo: Boolean? = null, className: String? = null, init: Link.() -> Unit? = null): Link

DSL builder extension function.

Link copied to clipboard
fun Container.listTag(type: ListType, elements: List<String>? = null, rich: Boolean = false, className: String? = null, init: ListTag.() -> Unit? = null): ListTag

DSL builder extension function.

Link copied to clipboard
fun Container.main(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: Main.() -> Unit? = null): Main

DSL builder extension function.

Link copied to clipboard
fun Container.nav(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: Nav.() -> Unit? = null): Nav

DSL builder extension function.

Link copied to clipboard
fun Container.numeric(value: Number? = null, name: String? = null, min: Number? = null, max: Number? = null, decimals: Int = 2, decimalSeparator: Char = I18n.detectDecimalSeparator(), label: String? = null, rich: Boolean = false, init: Numeric.() -> Unit? = null): Numeric

DSL builder extension function.

Link copied to clipboard
fun Container.numericInput(value: Number? = null, min: Number? = null, max: Number? = null, decimals: Int = 2, decimalSeparator: Char = I18n.detectDecimalSeparator(), className: String? = null, init: NumericInput.() -> Unit? = null): NumericInput

DSL builder extension function.

Link copied to clipboard
fun Container.ol(elements: List<String>? = null, rich: Boolean = false, className: String? = null, init: Ol.() -> Unit? = null): Ol

DSL builder extension function.

Link copied to clipboard
fun Container.p(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: P.() -> Unit? = null): P

DSL builder extension function.

Link copied to clipboard
fun Container.password(value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, floating: Boolean = false, init: Password.() -> Unit? = null): Password

DSL builder extension function.

Link copied to clipboard
fun Container.radio(value: Boolean = false, extraValue: String? = null, name: String? = null, labelFirst: Boolean = false, label: String? = null, rich: Boolean = false, init: Radio.() -> Unit? = null): Radio

DSL builder extension function.

Link copied to clipboard
fun Container.radioGroup(options: List<StringPair>? = null, value: String? = null, name: String? = null, inline: Boolean = false, label: String? = null, rich: Boolean = false, init: RadioGroup.() -> Unit? = null): RadioGroup

DSL builder extension function.

Link copied to clipboard
fun Container.radioGroupInput(options: List<StringPair>? = null, value: String? = null, name: String? = null, inline: Boolean = false, init: RadioGroupInput.() -> Unit? = null): RadioGroupInput

DSL builder extension function.

Link copied to clipboard
fun Container.radioInput(value: Boolean = false, className: String? = null, init: RadioInput.() -> Unit? = null): RadioInput

DSL builder extension function.

Link copied to clipboard
fun Container.range(value: Number? = null, name: String? = null, min: Number = 0, max: Number = 100, step: Number = RANGE_DEFAULT_STEP, label: String? = null, rich: Boolean = false, init: Range.() -> Unit? = null): Range

DSL builder extension function.

Link copied to clipboard
fun Container.rangeInput(value: Number? = null, min: Number = 0, max: Number = 100, step: Number = RANGE_DEFAULT_STEP, className: String? = null, init: RangeInput.() -> Unit? = null): RangeInput

DSL builder extension function.

Link copied to clipboard
open override fun remove(child: Component)

Removes given component from the current container.

Link copied to clipboard
open override fun removeAfterCreateHook(hook: (VNode) -> Unit): Boolean

Remove the after create hook function (the same function reference must be used).

Link copied to clipboard
open override fun removeAfterDestroyHook(hook: () -> Unit): Boolean

Remove the after destroy hook function (the same function reference must be used).

Link copied to clipboard
open override fun removeAfterInsertHook(hook: (VNode) -> Unit): Boolean

Remove the after insert hook function (the same function reference must be used).

Link copied to clipboard
open override fun removeAll()

Removes all children from the current container.

Link copied to clipboard
open override fun removeAt(position: Int)

Removes child component from the current container at the given position.

Link copied to clipboard
open override fun removeAttribute(name: String)

Removes the value of additional attribute.

Link copied to clipboard
open override fun removeBeforeDisposeHook(hook: () -> Unit): Boolean

Remove the before dispose hook function (the same function reference must be used).

Link copied to clipboard
open override fun removeCssClass(css: String)

Removes given value from the set of CSS classes generated in html code of current component.

Link copied to clipboard
open override fun removeCssStyle(css: Style)

Removes given style object from the set of CSS classes generated in html code of current component.

Link copied to clipboard
open fun removeEventListener(id: Int)

Removes event listener from current widget.

Link copied to clipboard

Removes all event listeners from current widget.

Link copied to clipboard
fun removeStyle(name: String)

Removes the value of a custom CSS style.

Link copied to clipboard
open override fun removeSurroundingCssClass(css: String)

Removes given value from the set of CSS classes generated in html code of parent component.

Link copied to clipboard
open override fun removeSurroundingCssStyle(css: Style)

Removes given style object from the set of CSS classes generated in html code of parent component.

Link copied to clipboard
fun Container.section(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: Section.() -> Unit? = null): Section

DSL builder extension function.

Link copied to clipboard
fun Container.select(options: List<StringPair>? = null, value: String? = null, emptyOption: Boolean = false, multiple: Boolean = false, selectSize: Int? = null, name: String? = null, label: String? = null, rich: Boolean = false, floating: Boolean = false, init: Select.() -> Unit? = null): Select

DSL builder extension function.

Link copied to clipboard
fun Container.selectInput(options: List<StringPair>? = null, value: String? = null, emptyOption: Boolean = false, multiple: Boolean = false, selectSize: Int? = null, className: String? = null, init: SelectInput.() -> Unit? = null): SelectInput

DSL builder extension function.

Link copied to clipboard
open override fun setAttribute(name: String, value: String)

Sets the value of additional attribute.

Link copied to clipboard
inline fun <K : Any> Template.setData(obj: K)
fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>)

Extension function to set serializable object as a template data.

Link copied to clipboard
open fun setDragDropData(format: String, data: String)

Sets D&D data for the current widget. It also makes it draggable.

Link copied to clipboard
open fun setDropTarget(format: String, callback: (DragEvent) -> Unit)
open fun setDropTarget(formats: Set<String>? = null, callback: (DragEvent) -> Unit)

Sets the current widget as a D&D drop target.

Link copied to clipboard
open fun setDropTargetData(format: String, callback: (String?) -> Unit)

Sets the current widget as a D&D drop target with helper callback accepting String data.

Link copied to clipboard
open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Int

Sets an event listener for current widget, keeping the actual type of component.

Link copied to clipboard
fun setStyle(name: String, value: String)

Sets the value of a custom CSS style.

Link copied to clipboard
open fun show()

Makes current widget visible.

Link copied to clipboard
fun Container.simplePanel(vararg styles: Style, init: SimplePanel.() -> Unit? = null): SimplePanel

DSL builder extension function with Style support

fun Container.simplePanel(className: String? = null, init: SimplePanel.() -> Unit? = null): SimplePanel

DSL builder extension function.

Link copied to clipboard
open override fun <T> singleRender(block: () -> T): T

Executes given function within a single rendering process.

Link copied to clipboard
open override fun singleRenderAsync(block: () -> Unit)

Executes given function within a single rendering process asynchronously.

Link copied to clipboard
fun Container.small(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: Small.() -> Unit? = null): Small

DSL builder extension function.

Link copied to clipboard
fun Container.span(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: Span.() -> Unit? = null): Span

DSL builder extension function.

Link copied to clipboard
fun Container.spinner(value: Number? = null, name: String? = null, min: Int? = null, max: Int? = null, step: Int = SPINNER_DEFAULT_STEP, label: String? = null, rich: Boolean = false, init: Spinner.() -> Unit? = null): Spinner

DSL builder extension function.

Link copied to clipboard
fun Container.spinnerInput(value: Number? = null, min: Int? = null, max: Int? = null, step: Int = SPINNER_DEFAULT_STEP, className: String? = null, init: SpinnerInput.() -> Unit? = null): SpinnerInput

DSL builder extension function.

Link copied to clipboard
fun Container.splitPanel(direction: Direction = Direction.VERTICAL, className: String? = null, init: SplitPanel.() -> Unit? = null): SplitPanel

DSL builder extension function.

Link copied to clipboard
fun Container.stackPanel(activateLast: Boolean = true, className: String? = null, init: StackPanel.() -> Unit? = null): StackPanel

DSL builder extension function.

Link copied to clipboard
fun Container.strong(content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: Strong.() -> Unit? = null): Strong

DSL builder extension function.

Link copied to clipboard
fun Widget.style(selector: String? = null, pClass: PClass? = null, pElement: PElement? = null, mediaQuery: String? = null, init: Style.() -> Unit? = null): Style

DSL builder extension function.

Link copied to clipboard
fun Container.table(className: String? = null, init: Table.() -> Unit? = null): Table

DSL builder extension function.

Link copied to clipboard
fun Container.tag(type: TAG, content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, attributes: Map<String, String>? = null, init: Tag.() -> Unit? = null): Tag

DSL builder extension function.

Link copied to clipboard
fun Container.text(type: InputType = InputType.TEXT, value: String? = null, name: String? = null, maxlength: Int? = null, label: String? = null, rich: Boolean = false, floating: Boolean = false, init: Text.() -> Unit? = null): Text

DSL builder extension function.

Link copied to clipboard
fun Container.textArea(cols: Int? = null, rows: Int? = null, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, floating: Boolean = false, init: TextArea.() -> Unit? = null): TextArea

DSL builder extension function.

Link copied to clipboard
fun Container.textAreaInput(cols: Int? = null, rows: Int? = null, value: String? = null, className: String? = null, init: TextAreaInput.() -> Unit? = null): TextAreaInput

DSL builder extension function.

Link copied to clipboard
fun Container.textInput(type: InputType = InputType.TEXT, value: String? = null, maxlength: Int? = null, className: String? = null, init: TextInput.() -> Unit? = null): TextInput

DSL builder extension function.

Link copied to clipboard
fun Container.textNode(content: String, rich: Boolean = false, init: TextNode.() -> Unit? = null): TextNode

DSL builder extension function.

Link copied to clipboard
fun Container.time(datetime: String, content: String? = null, rich: Boolean = false, align: Align? = null, className: String? = null, init: Time.() -> Unit? = null): Time

DSL builder extension function.

Link copied to clipboard
open fun toggleVisible()

Toggles visibility of current widget.

Link copied to clipboard
fun Container.tr(className: String? = null, init: Tr.() -> Unit? = null): Tr

DSL builder extension function.

Link copied to clipboard
open fun translate(text: String): String
open fun translate(text: String?): String?

Translates given text with I18n trans function and sets lastLanguage marker.

Link copied to clipboard
fun Container.triStateCheckBox(value: Boolean? = null, name: String? = null, labelFirst: Boolean = false, label: String? = null, rich: Boolean = false, init: TriStateCheckBox.() -> Unit? = null): TriStateCheckBox

DSL builder extension function.

Link copied to clipboard
fun Container.triStateCheckBoxInput(value: Boolean = false, className: String? = null, init: TriStateCheckBoxInput.() -> Unit? = null): TriStateCheckBoxInput

DSL builder extension function.

Link copied to clipboard
fun Container.ul(elements: List<String>? = null, rich: Boolean = false, className: String? = null, init: Ul.() -> Unit? = null): Ul

DSL builder extension function.

Link copied to clipboard
open operator override fun String.unaryPlus()

An operator to add a text node to the container.

Link copied to clipboard
fun Container.upload(multiple: Boolean = false, accept: List<String>? = null, capture: Capture? = null, label: String? = null, rich: Boolean = false, init: Upload.() -> Unit? = null): Upload

DSL builder extension function.

Link copied to clipboard
fun Container.uploadInput(multiple: Boolean = false, accept: List<String>? = null, capture: Capture? = null, className: String? = null, init: UploadInput.() -> Unit? = null): UploadInput

DSL builder extension function.

Link copied to clipboard

Makes the component use distinct snabbdom key.

Link copied to clipboard
fun Container.vPanel(justify: JustifyContent? = null, alignItems: AlignItems? = null, spacing: Int? = null, useWrappers: Boolean = false, className: String? = null, init: VPanel.() -> Unit? = null): VPanel

DSL builder extension function.

Link copied to clipboard
fun Container.widget(className: String? = null, init: Widget.() -> Unit? = null): Widget

DSL builder extension function.