diff options
author | Robert Jaros <rjaros@finn.pl> | 2018-03-11 23:36:01 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2018-03-11 23:45:06 +0100 |
commit | c0fca9901a634d53d8ee0bfb119b9b2e2f017d83 (patch) | |
tree | 127bbc1cd56097694d906d9b9245164436457a76 /src/main/kotlin/pl/treksoft/kvision/table | |
parent | 3577c10b5c3839a06f64cb19e72788401bd7406d (diff) | |
download | kvision-c0fca9901a634d53d8ee0bfb119b9b2e2f017d83.tar.gz kvision-c0fca9901a634d53d8ee0bfb119b9b2e2f017d83.tar.bz2 kvision-c0fca9901a634d53d8ee0bfb119b9b2e2f017d83.zip |
Change the name of content property in Tag component.
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/table')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/table/Cell.kt | 12 | ||||
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/table/HeaderCell.kt | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/table/Cell.kt b/src/main/kotlin/pl/treksoft/kvision/table/Cell.kt index 8ea26327..7a0874d6 100644 --- a/src/main/kotlin/pl/treksoft/kvision/table/Cell.kt +++ b/src/main/kotlin/pl/treksoft/kvision/table/Cell.kt @@ -11,19 +11,19 @@ import pl.treksoft.kvision.html.Tag * HTML table cell component. * * @constructor - * @param text text content of the cell - * @param rich determines if [text] can contain HTML code + * @param content text content of the cell + * @param rich determines if [content] can contain HTML code * @param align text align * @param classes a set of CSS class names * @param init an initializer extension function */ open class Cell( - text: String? = null, + content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (Cell.() -> Unit)? = null -) : Tag(TAG.TD, text, rich, align, classes) { +) : Tag(TAG.TD, content, rich, align, classes) { init { @Suppress("LeakingThis") @@ -37,12 +37,12 @@ open class Cell( * It takes the same parameters as the constructor of the built component. */ fun Row.cell( - text: String? = null, + content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (Cell.() -> Unit)? = null ): Cell { - val cell = Cell(text, rich, align, classes, init) + val cell = Cell(content, rich, align, classes, init) this.add(cell) return cell } diff --git a/src/main/kotlin/pl/treksoft/kvision/table/HeaderCell.kt b/src/main/kotlin/pl/treksoft/kvision/table/HeaderCell.kt index d6ab2c18..dcca1ea9 100644 --- a/src/main/kotlin/pl/treksoft/kvision/table/HeaderCell.kt +++ b/src/main/kotlin/pl/treksoft/kvision/table/HeaderCell.kt @@ -11,19 +11,19 @@ import pl.treksoft.kvision.html.Tag * HTML table header cell component. * * @constructor - * @param text text content of the cell - * @param rich determines if [text] can contain HTML code + * @param content text content of the cell + * @param rich determines if [content] can contain HTML code * @param align text align * @param classes a set of CSS class names * @param init an initializer extension function */ open class HeaderCell( - text: String? = null, + content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (HeaderCell.() -> Unit)? = null -) : Tag(TAG.TH, text, rich, align, classes) { +) : Tag(TAG.TH, content, rich, align, classes) { init { @Suppress("LeakingThis") @@ -37,12 +37,12 @@ open class HeaderCell( * It takes the same parameters as the constructor of the built component. */ fun Row.headerCell( - text: String? = null, + content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (HeaderCell.() -> Unit)? = null ): HeaderCell { - val cell = HeaderCell(text, rich, align, classes, init) + val cell = HeaderCell(content, rich, align, classes, init) this.add(cell) return cell } |