kvision / pl.treksoft.kvision.dropdown / Header

Header

open class Header : Tag

Menu header component.

Constructors

<init>

Header(content: String? = null, classes: Set<String> = setOf())

Inherited Properties

align

var align: Align?

Text align.

content

open var content: String?

Text content of the tag.

rich

open var rich: Boolean

Determines if content can contain HTML code.

template

open var template: (Any?) -> String

Handlebars template.

templates

open var templates: Map<String, (Any?) -> String>

Handlebars templates for i18n.

type

var type: TAG

Tag type.

Inherited Functions

getSnClass

open fun getSnClass(): List<StringBoolPair>

Returns list of CSS class names for current widget in the form of a List.

render

open fun render(): VNode

Renders current component as a Snabbdom vnode.

Companion Object Functions

header

fun ListTag.header(content: String? = null, classes: Set<String> = setOf()): Header
fun DropDown.header(content: String? = null, classes: Set<String> = setOf()): Header

DSL builder extension function.