From fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb Mon Sep 17 00:00:00 2001
From: Robert Jaros Constructor Overrides Tag.getSnClass Returns list of CSS class names for current widget in the form of a List. Return Icon type. Getter Icon type.
+
+<init>
+
+Icon(icon: String)
+Parameters
+
+
+
+
+getSnClass
+
+protected open fun getSnClass(): List<StringBoolPair>
+
+list of CSS class names
+
+icon
+
+var icon: String
+
+
Setter
+
Icon type.
+ + +fun Container.icon(icon: String, init: (Icon.() -> Unit)? = null): Icon
+DSL builder extension function.
+It takes the same parameters as the constructor of the built component.
+ + diff --git a/api1/pl.treksoft.kvision.html/-icon/index.html b/api1/pl.treksoft.kvision.html/-icon/index.html new file mode 100644 index 00000000..4f9b2ad9 --- /dev/null +++ b/api1/pl.treksoft.kvision.html/-icon/index.html @@ -0,0 +1,172 @@ + + + +open class Icon : Tag
+Icon component with support for FontAwesome and Bootstrap glyphicons.
++ + | +
+Icon(icon: String) |
+
+ + | +
+var icon: String
+Icon type. + |
+
+ + | +
+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 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 |
+
+ + | +
+fun Container.icon(icon: String, init: (Icon.() -> Unit)? = null): Icon
+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. + |
+