UIText
Represents text inside a UI.
const text = app.create('uitext')text.value = 'Hello world'Properties
Section titled “Properties”.display: String
Section titled “.display: String”Either none or flex.
Defaults to flex.
.backgroundColor: String
Section titled “.backgroundColor: String”The background color of the view.
Can be hex (eg #000000) or rgba (eg rgba(0, 0, 0, 0.5)).
Defaults to null.
.borderRadius: Number
Section titled “.borderRadius: Number”The radius of the border in pixels.
.margin: Number
Section titled “.margin: Number”The outer margin of the view in pixels.
Defaults to 0.
.padding: Number
Section titled “.padding: Number”The inner padding of the view in pixels.
Defaults to 0.
.value: String
Section titled “.value: String”The text to display.
.fontSize: Number
Section titled “.fontSize: Number”The font size in pixels.
Defauls to 16.
.color: Number
Section titled “.color: Number”The font color.
Defauls to #000000.
.lineHeight: Number
Section titled “.lineHeight: Number”The line height.
Defaults to 1.2.
.textAlign: String
Section titled “.textAlign: String”Options: left, center, right.
Defaults to left.
.fontFamily: String
Section titled “.fontFamily: String”Defaults to Rubik.
.fontWeight: Number
Section titled “.fontWeight: Number”Defaults to normal, can also be a number like 100 or string like bold.
.{...Node}
Section titled “.{...Node}”Inherits all Node properties