Table of contents

  1. ButtonModel
  2. CenterboxModel
  3. ColumnModel
  4. ContainerModel
  5. CustomSignal
  6. IconModel
  7. ImageModel
  8. MouseAreaModel
  9. OnScrollSignal
  10. RowModel
  11. ScrollableModel
  12. TextInputModel
  13. TextModel
  14. Widget
  15. WidthHeightWidget

source


ButtonModel

Propreties:

childWidget?

A widget that will be displayed within the button

see definitions: Widget

height("fill"|"shrink"|["fill_portion", number]|["fixed", number])?

Sets the height of the widget

on_press(string|CustomSignal)?

Sends a signal whenever the button is pressed. If a string is provided, it will send no data

see definitions: CustomSignal

padding(number|[number, number, number, number]|[number, number])?

styleButtonAppearance?

Sets the appearance of the button

see definitions: ButtonAppearance

width("fill"|"shrink"|["fill_portion", number]|["fixed", number])?

Sets the width of the widget

Methods:


CenterboxModel

Propreties:

align_items("center"|"end"|"start")?

height("fill"|"shrink"|["fill_portion", number]|["fixed", number])?

Sets the height of the widget

left_childWidget?

Element to be displayed on the left side of the centerbox

see definitions: Widget

middle_childWidget?

Element to be displayed in the middle of the centerbox

see definitions: Widget

padding(number|[number, number, number, number]|[number, number])?

right_childWidget?

Element to be displayed on the right side of the centerbox

see definitions: Widget

spacingnumber?

The spacing of elements in pixels

width("fill"|"shrink"|["fill_portion", number]|["fixed", number])?

Sets the width of the widget

Methods:


ColumnModel

Propreties:

align_x("center"|"left"|"right")?

Sets the vertical alignments of the contents of the column

childrenWidget[]?

List of widgets to be rendered within the column

see definitions: Widget

clipboolean?

Sets whether the contents of the column should be clipped on overflow

height("fill"|"shrink"|["fill_portion", number]|["fixed", number])?

Sets the height of the widget

max_widthnumber?

Maximum width of the column in pixels

padding(number|[number, number, number, number]|[number, number])?

spacingnumber?

The spacing between elements in pixels

width("fill"|"shrink"|["fill_portion", number]|["fixed", number])?

Sets the width of the widget

Methods:


ContainerModel

Propreties:

align_x("center"|"left"|"right")?

Sets the alignment of content on the horizontal axis

align_y("bottom"|"center"|"top")?

Sets the alignment of content on the vertical axis

center_x("fill"|"shrink"|["fill_portion", number]|["fixed", number])?

Sets the width of the container and centers the content horizontally

center_y("fill"|"shrink"|["fill_portion", number]|["fixed", number])?

Sets the height of the container and centers the content vertically

childWidget?

Element to be displayed within the container

see definitions: Widget

height("fill"|"shrink"|["fill_portion", number]|["fixed", number])?

Sets the height of the widget

max_heightnumber?

Maximum height of the container in pixels

max_widthnumber?

Maximum width of the container in pixels

padding(number|[number, number, number, number]|[number, number])?

styleContainerAppearance?

Sets the appearance of the container

see definitions: ContainerAppearance

width("fill"|"shrink"|["fill_portion", number]|["fixed", number])?

Sets the width of the widget

Methods:


CustomSignal

Propreties:

signal_datatable

signal_namestring

Methods:


IconModel

Propreties:

content_fit("contain"|"cover"|"fill"|"none"|"scale_down")?

Sets how the content should be fit.

height("fill"|"shrink"|["fill_portion", number]|["fixed", number])?

Sets the height of the widget

icon_namestring?

The name of the icon. icon_name or icon_path is required.

icon_pathstring?

The path to the icon. icon_name or icon_path is required.

sizeinteger?

The size of the icon.

width("fill"|"shrink"|["fill_portion", number]|["fixed", number])?

Sets the width of the widget

Methods:


ImageModel

Propreties:

border_radius(number|[number, number, number, number])?

The border radius of the image

contentstring?

A path to an image, this field is required

content_fit("contain"|"cover"|"fill"|"none"|"scale_down")?

Sets how the content should be fit. Defaults to contain

filter_method("linear"|"nearest")?

height("fill"|"shrink"|["fill_portion", number]|["fixed", number])?

Sets the height of the widget

opacitynumber?

Sets the opacity of an image. It should be in 0.0 - 1.0 range

rotation(["floating", number]|["solid", number])?

Sets the rotation of the image. floating - element will float while rotating, layout will be the same prior to rotation (default). solid - element will be solid while rotating, layout will be adjusted to fit rotated content

width("fill"|"shrink"|["fill_portion", number]|["fixed", number])?

Sets the width of the widget

Methods:


MouseAreaModel

Propreties:

childWidget

Element that determines the size of the mouse area

see definitions: Widget

on_double_clickCustomSignal?

Sends a signal when the left mouse button has been pressed twice over a specified area.

see definitions: CustomSignal

on_dragCustomSignal?

Sends a signal when a drag has been initiated over a specified area.

see definitions: CustomSignal

on_enterCustomSignal?

Sends a signal when the mouse has entered a specified area

see definitions: CustomSignal

on_exitCustomSignal?

Sends a signal when the mouse has left a specified area

see definitions: CustomSignal

on_middle_pressCustomSignal?

Sends a signal when the middle mouse button has been pressed over a specified area.

see definitions: CustomSignal

on_pressCustomSignal?

Sends a signal when the left mouse button has been pressed over a specified area.

see definitions: CustomSignal

on_releaseCustomSignal?

Sends a signal when the left mouse button has been released over a specified area.

see definitions: CustomSignal

on_scrollstring?

Sends to a specified signal name, sends direction field in a table that can be either up or down (e.g. OnScrollSignal)

Methods:


OnScrollSignal

Propreties:

direction"down"|"up"

Methods:


RowModel

Propreties:

align_y("bottom"|"center"|"top")?

Sets the vertical alignments of the contents of the row

childrenWidget[]?

List of widgets to be rendered within the row

see definitions: Widget

clipboolean?

Sets whether the contents of the row should be clipped on overflow

height("fill"|"shrink"|["fill_portion", number]|["fixed", number])?

Sets the height of the widget

padding(number|[number, number, number, number]|[number, number])?

spacingnumber?

The spacing between elements in pixels

width("fill"|"shrink"|["fill_portion", number]|["fixed", number])?

Sets the width of the widget

Methods:


ScrollableModel

Propreties:

childWidget?

Infinite amount of content to be displayed within the scrollable

see definitions: Widget

direction(["both", { vertical: ScrollablePropreties, horizontal: ScrollablePropreties }]|["horizontal", ScrollablePropreties]|["vertical", ScrollablePropreties])?

The direction where the content will be scrolled

see definitions: ScrollablePropreties

height("fill"|"shrink"|["fill_portion", number]|["fixed", number])?

Sets the height of the widget

width("fill"|"shrink"|["fill_portion", number]|["fixed", number])?

Sets the width of the widget

Methods:


TextInputModel

Propreties:

always_activeboolean?

If enabled, makes it behave as if it were always focused

line_height(["absolute", number]|["relative", number])?

Sets the line height of the

on_inputstring?

Runs a signal when some text is typed in the text input, sends text in the signal data which contains the new text. Cannot pass through custom signals

on_submit(string|CustomSignal)?

Sends a custom signal when the text input is focused and the enter key is pressed

see definitions: CustomSignal

passwordboolean?

If the text input should be a secure password input

placeholderstring?

Placeholder text for the text input

sizenumber?

Sets the text size of the text input

styleTextInputAppearance?

Sets the appearance of the text input

see definitions: TextInputAppearance

valuestring?

The text of the text input. Needs an external variable paired with on_input in order to change

width("fill"|"shrink"|["fill_portion", number]|["fixed", number])?

Methods:


TextModel

Propreties:

align_x("center"|"left"|"right")?

Sets the horizontal alignment of the text

align_y("bottom"|"center"|"top")?

Sets the vertical alignment of the text

contentstring?

The text that should be displayed

fontFont?

The font of the text

see definitions: Font

height("fill"|"shrink"|["fill_portion", number]|["fixed", number])?

Sets the height of the text

line_heightnumber?

Sets the line height in pixels

sizenumber?

The font size of the text

styleTextAppearance?

Sets the appearance of the text

see definitions: TextAppearance

width("fill"|"shrink"|["fill_portion", number]|["fixed", number])?

Sets the width of the widget

Methods:


Widget

Propreties:

widget_namestring

Methods:


WidthHeightWidget

Propreties:

height("fill"|"shrink"|["fill_portion", number]|["fixed", number])?

Sets the height of the widget

width("fill"|"shrink"|["fill_portion", number]|["fixed", number])?

Sets the width of the widget

Methods: