Button

A push button. Can contain a text or an image.

Import this type with “”

Type: string, supported values: , , , default:

The horizontal alignment of the button text.

image

Type:

An image to be displayed on the button.

text

Type: string

Type:

The color of the text.

alignmentChanged

Fired when the property has changed.

Event Parameters

  • value: string The new value of .

imageChanged

Fired when the property has changed.

Event Parameters

  • target: this The widget the event was fired on.

Fired when the button is pressed.

textChanged

Fired when the text property has changed.

Event Parameters

  • target: this The widget the event was fired on.

  • value: string The new value of text.

textColorChanged

Fired when the textColor property has changed.

Event Parameters

  • value: Color The new value of .