From 806edfceeefe7fda47924f97237974e99fe28a02 Mon Sep 17 00:00:00 2001
From: Robert Jaros
-
+
-
<init>
-Tag(type: TAG, text: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: Tag.() -> Unit = null)
+Tag(type: TAG, content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: Tag.() -> Unit = null)
Parameters
-text - text content of the tagcontent - content text of the tagrich - determines if text can contain HTML coderich - determines if content can contain HTML code
align - content align
classes - a set of CSS class names
diff --git a/api/pl.treksoft.kvision.html/-tag/content.html b/api/pl.treksoft.kvision.html/-tag/content.html new file mode 100644 index 00000000..42016db7 --- /dev/null +++ b/api/pl.treksoft.kvision.html/-tag/content.html @@ -0,0 +1,22 @@ + +
+ +open var content: String?
+Overrides Template.content
+Text content of the tag.
+Getter
+
Text content of the tag.
+ +Setter
+
Text content of the tag.
+ + + diff --git a/api/pl.treksoft.kvision.html/-tag/index.html b/api/pl.treksoft.kvision.html/-tag/index.html index 035e7552..7667eeac 100644 --- a/api/pl.treksoft.kvision.html/-tag/index.html +++ b/api/pl.treksoft.kvision.html/-tag/index.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.html / Tagopen class Tag : SimplePanel
+open class Tag : SimplePanel, Template
HTML tag component.
-Tag(type: TAG, text: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: Tag.() -> Unit = null) |
+
open var content: String?
+Text content of the tag.
+var rich: Boolean
-Determines if text can contain HTML code.
+open var rich: Boolean
+Determines if content can contain HTML code.
var text: String?
-Text content of the tag.
+open var template: (Any?) -> String
+Handlebars template.
| + + | +
+open var templateData: Any? |
+
-fun Container.tag(type: TAG, text: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: Tag.() -> Unit = null): Tag
+fun Container.tag(type: TAG, content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: Tag.() -> Unit = null): Tag
DSL builder extension function. |
@@ -200,6 +221,15 @@
|
| + + | +
+open class Header : Tag
+Menu header component. + |
+
| @@ -236,6 +266,24 @@ | |
| + + | +
+open class Nav : Tag
+The Bootstrap Nav container. + |
+
| + + | +
+open class NavForm : Tag
+The Bootstrap Nav form container. + |
+
|
@@ -243,6 +291,15 @@
HTML table row component. |
|
| + + | +
+open class Separator : Tag
+Menu separator component. + |
+