Default button type

This commit is contained in:
ryoii 2020-03-24 16:50:26 +08:00
parent 532f162d44
commit e693d4b347

View File

@ -17,6 +17,7 @@ internal fun EventTarget.jfxTabPane(op: JFXTabPane.() -> Unit = {}) = JFXTabPane
internal fun EventTarget.jfxButton(text: String = "", graphic: Node? = null, op: Button.() -> Unit = {}) =
JFXButton(text).attachTo(this, op) {
if (graphic != null) it.graphic = graphic
it.buttonType = JFXButton.ButtonType.RAISED
}
fun EventTarget.jfxTextfield(value: String? = null, op: JFXTextField.() -> Unit = {}) =