Dynamic Label

Non-Visible component
Category Requires Version
Dynamic Components API 19, Android 4.4 - 4.4.4 KitKat 3

Overview

A component to create dynamic labels in Arrangements

Methods

Create Label

Create a Dynamic Label

Params
id Number
arrangement Component

Delete Label

Remove a label component with the given id.

Params
id Number

Get Font Size

Returns: Number

Get the Font Size of a Label

Params
id Number

Get Height

Returns: Number

Get the Height of a Label

Params
id Number

Get Label By Id

Returns: Component

Returns the label referenced by its id.

Params
id Number

Get Text

Returns: Text

Get the Text of a Label

Params
id Number

Get Width

Returns: Number

Get the Width of a Label

Params
id Number

Set Alignment

Update the Text Alignment of a Label. 0 = left, 1 = center and 2 = right.

Params
id Number
alignment Number

Set Background Color

Update the Background Color of a Label

Params
id Number
color Number

Set Font

Update the Font of a Label

Params
id Number
bold Boolean
italic Boolean

Set Font Size

Update the Font Size of a Label

Params
id Number
size Number

Set Height

Update the Height of a Label

Params
id Number
height Number

Set Text

Update the Text of a Label

Params
id Number
text Text
html Boolean

Set Text Color

Update the Text Color of a Label

Params
id Number
color Number

Set Width

Update the Width of a Label

Params
id Number
width Number

Properties

Alignment Center

Number ➖ Read - Blocks

Center alignment (1)

Alignment Left

Number ➖ Read - Blocks

Left alignment (0)

Alignment Right

Number ➖ Read - Blocks

Right alignment (2)


Last update: January 27, 2020