Skip to content

UIView

Represents a single view inside a UI, similar to a div.

const view = app.create('uiview')
view.backgroundColor = 'rgba(0, 0, 0, 0.5)'

Either none or flex. Defaults to flex.

The width of the view in pixels. Defaults to 100.

The height of the view in pixels. Defaults to 100.

The background color of the view. Can be hex (eg #000000) or rgba (eg rgba(0, 0, 0, 0.5)). Defaults to null.

The width of the border in pixels.

The color of the border.

The radius of the border in pixels.

The outer margin of the view in pixels. Defaults to 0.

The inner padding of the view in pixels. Defaults to 0.

The flex direction. column, column-reverse, row or row-reverse. Defaults to column.

Options: flex-start, flex-end, center. Defaults to flex-start.

Options: stretch, flex-start, flex-end, center, baseline. Defaults to stretch.

Options: flex-start, flex-end, stretch, center, space-between, space-around, space-evenly. Defaults to flex-start.

Defaults to null.

Defaults to null.

Defaults to null.

Options: no-wrap, wrap. Defaults to no-wrap.

Defaults to 0.

Inherits all Node properties