open class Tag : SimplePanel, Template
HTML tag component.
Tag(type: TAG, content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), attributes: Map<String, String> = mapOf(), init: (Tag.() -> Unit)? = null) |
var align: Align?
Text align. |
|
open var content: String?
Text content of the tag. |
|
open var rich: Boolean
Determines if content can contain HTML code. |
|
open var template: ((Any?) -> String)?
Handlebars template. |
|
open var templates: Map<String, (Any?) -> String>
Handlebars templates for i18n. |
|
var type: TAG
Tag type. |
open var templateData: Any?
Handlebars template data object. |
open fun getSnClass(): List<StringBoolPair>
Returns list of CSS class names for current widget in the form of a List. |
|
open fun render(): VNode
Renders current component as a Snabbdom vnode. |
|
operator fun String.unaryPlus(): Unit |
open fun add(child: Component): SimplePanel
Adds given component to the current container. |
|
open fun addAll(children: List<Component>): SimplePanel
Adds a list of components to the current container. |
|
fun addInternal(child: Component): SimplePanel
Protected and final method to add given component to the current container. |
|
open fun childrenVNodes(): Array<VNode>
Returns the array of the children Snabbdom vnodes. |
|
open fun getChildren(): List<Component>
Returns a list of children of the current container. |
|
open fun remove(child: Component): SimplePanel
Removes given component from the current container. |
|
open fun removeAll(): SimplePanel
Removes all children from the current container. |
fun Container.tag(type: TAG, content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), attributes: Map<String, String> = mapOf(), init: (Tag.() -> Unit)? = null): Tag
DSL builder extension function. |
fun <T> Any?.createInstance(vararg args: dynamic): T
Helper function for creating JavaScript objects from dynamic constructors. |
|
fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit fun <K : Any> Template.setData(obj: K): Unit
Extension function to set serializable object as a template data. |
open class Cell : Tag
HTML table cell component. |
|
open class Div : Tag
Simple component rendered as div. |
|
open class FieldLabel : Tag
Helper class for HTML label element. |
|
open class Footer : Tag
Simple component rendered as footer. |
|
open class H1 : Tag
Simple component rendered as h1. |
|
open class H2 : Tag
Simple component rendered as h2. |
|
open class H3 : Tag
Simple component rendered as h3. |
|
open class H4 : Tag
Simple component rendered as h4. |
|
open class H5 : Tag
Simple component rendered as h5. |
|
open class H6 : Tag
Simple component rendered as h6. |
|
open class Header : Tag
Menu header component. |
|
open class Header : Tag
Simple component rendered as header. |
|
open class HeaderCell : Tag
HTML table header cell component. |
|
open class HelpBlock : Tag
Helper class for Bootstrap help block element. |
|
open class Icon : Tag
Icon component with support for FontAwesome and Bootstrap glyphicons. |
|
open class Nav : Tag
The Bootstrap Nav container. |
|
open class NavForm : Tag
The Bootstrap Nav form container. |
|
open class P : Tag
Simple component rendered as p. |
|
open class Row : Tag
HTML table row component. |
|
open class Section : Tag
Simple component rendered as section. |
|
open class Separator : Tag
Menu separator component. |
|
open class Span : Tag
Simple component rendered as span. |