add

inline fun add(text: String, data: ButtonBar.ButtonData = ButtonData.OTHER, configuration: Button.() -> Unit): Button

Add custom button specifying text and data using configuration block.


fun add(type: ButtonType): Button

Add raw ButtonType.