open class HeaderCell : Tag
HTML table header cell component.
HeaderCell(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (HeaderCell.() -> Unit)? = null) |
var align: Align?
Text align. |
|
val attributes: MutableMap<String, String> |
|
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. |
fun getAttribute(name: String): String?
Returns the value of an additional attribute. |
|
open fun getSnAttrs(): List<StringPair>
Returns list of element attributes in the form of a List. |
|
open fun getSnClass(): List<StringBoolPair>
Returns list of CSS class names for current widget in the form of a List. |
|
fun removeAttribute(name: String): Widget
Removes the value of additional attribute. |
|
open fun render(): VNode
Renders current component as a Snabbdom vnode. |
|
fun setAttribute(name: String, value: String): Widget
Sets the value of additional attribute. |
|
operator fun String.unaryPlus(): Unit |
fun Row.headerCell(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (HeaderCell.() -> Unit)? = null): HeaderCell
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. |