kvision / pl.treksoft.kvision.html / Icon

Icon

open class Icon : Tag

Icon component with support for FontAwesome and Bootstrap glyphicons.

Constructors

<init>

Icon(icon: String)

Properties

icon

var icon: String

Icon type.

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.

Functions

getSnClass

open fun getSnClass(): List<StringBoolPair>

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

Inherited Functions

render

open fun render(): VNode

Renders current component as a Snabbdom vnode.

Companion Object Functions

icon

fun Container.icon(icon: String, init: Icon.() -> Unit = null): Icon

DSL builder extension function.