diff options
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 } |