Button

component fbx.ui.control.Button
../../../_images/button_blur.png

Button with no focus

Button {
    text: "OK"
    onPressed: console.log("Hello, world !")
}

Button is a clickable widget.

property text

Text string printed on the button.

../../../_images/button_focus.png

Button with active focus. If user presses “Enter”, button will be activated.

property hovered

Whether button is currently hovered by a mouse.

../../../_images/button_hover.png

Hovered button

property pressed

Whether button is currently pressed, either by a mouse or a keyboard press.

property enabled

Whether button accepts user interaction. If this is set to false, the button appears grayed-out and does not react on hovering.

../../../_images/button_inactive.png

Non-enabled button.

signal clicked()

Signal raised when the button gets clicked, either with a mouse or with keyboard.