Dynamic Button¶
Non-Visible componentCategory | Requires | Version |
---|---|---|
Dynamic Components | API 21, Android 5.0 Lollipop | 4 |
Overview¶
A component to create dynamic buttons in Arrangements
Events¶
Button Click¶
Trigger when a Dynamic Button is clicked.
Params | |
---|---|
id | Number |
Button Long Click¶
Trigger when a Dynamic Button is long clicked.
Params | |
---|---|
id | Number |
Methods¶
Create Button¶
Create a Dynamic Button.
Params | |
---|---|
id | Number |
arrangement | Component |
Delete Button¶
Deprecated
This block is DEPRECATED! Please use instead the 'Delete Button' block without arrangement parameter.
Params | |
---|---|
id | Number |
arrangement | Component |
Delete Button¶
Delete a Dynamic Button.
Params | |
---|---|
id | Number |
Get Button By Id¶
Returns: Component
Returns the button referenced by its id.
Params | |
---|---|
id | Number |
Get Enabled¶
Returns: Boolean
Get the Enabled status of a button.
Params | |
---|---|
id | Number |
Get Font Size¶
Returns: Number
Get the Font Size of a button.
Params | |
---|---|
id | Number |
Get Height¶
Returns: Number
Get the Height of a button.
Params | |
---|---|
id | Number |
Get Text¶
Returns: Text
Get the Text of a button.
Params | |
---|---|
id | Number |
Get Width¶
Returns: Number
Get the Width of a button.
Params | |
---|---|
id | Number |
Set Background Color¶
Update the Background Color of a button.
Params | |
---|---|
id | Number |
color | Number |
Set Enabled¶
Update the Enabled status of a button.
Params | |
---|---|
id | Number |
enabled | Boolean |
Set Font¶
Update the Font of a button.
Params | |
---|---|
id | Number |
bold | Boolean |
italic | Boolean |
Set Font Size¶
Update the Font Size of a button.
Params | |
---|---|
id | Number |
size | Number |
Set Height¶
Update the Height of a button.
Params | |
---|---|
id | Number |
height | Number |
Set Text¶
Update the Text of a button.
Params | |
---|---|
id | Number |
text | Text |
Set Text Color¶
Update the Text Color of a button.
Params | |
---|---|
id | Number |
color | Number |
Set Width¶
Update the Width of a button.
Params | |
---|---|
id | Number |
width | Number |