TableColumnScope

class TableColumnScope<S>(val columns: MutableCollection<TableColumn<S, *>>)

TableColumn configurator interface.

Constructors

Link copied to clipboard
constructor(columns: MutableCollection<TableColumn<S, *>>)

Properties

Link copied to clipboard
val columns: MutableCollection<TableColumn<S, *>>

collection of columns within this scope.

Functions

Link copied to clipboard
fun <T> append(text: String? = null): TableColumn<S, T>

Add a default column using text, returning the column added.

inline fun <T> append(text: String? = null, configuration: TableColumn<S, T>.() -> Unit): TableColumn<S, T>

Add a column using text and configuration block, returning the column added.

Link copied to clipboard
inline operator fun <T> String.invoke(configuration: TableColumn<S, T>.() -> Unit): TableColumn<S, T>

Add a column using receiver and configuration block, returning the column added.