Button
Last updated
Last updated
Label (not mantory) to be used to show the component's label. Icon (not mantory) - button icon. Size (mantory) - standard button sizes. Type (mantory) - standard button layouts. Name (mantory) - this name will help you find this component in BP. Enabled (mantory) - availability of the button in the application. Is turned on by default. Visible (mandatory) - makes the component visible if turned on. Enabled by default.
onCreate – fires when the element is created on the page;
onShow – fires when the component changes its state to visible (displayed on the page);
onHide – fires when the component changes its state to hidden (stops being displayed);
onDestroy – fires when the component is destroyed;
onClick - fires when the component is clicked.
Gets the button's properties
Input parameters:
Component Id [string] - button component's identifier.
Output parameters:
Label [string] - button's label;
Type [enum] - button's type;
Size [enum] - button's type;
Icon [enum] - button's icon;
Color [string] - button's color;
Visible [boolean] - button's visibility state;
Enabled [boolean] - button's enabled/disabled state;
Loading [boolean] - button's loading state.
Sets all button's properties Input parameters:
Component Id [string] - button component's identifier.
Label [string] - button's label;
Type [enum] - button's type;
Size [enum] - button's type;
Icon [enum] - button's icon;
Color [string] - button's color;
Visible [boolean] - button's visibility state;
Enabled [boolean] - button's enabled/disabled state;
Loading [boolean] - button's loading state.
Update the button's properties
Input parameters:
Component Id [string] - button component's identifier;
Label [string] - button's label;
Type [enum] - button's type;
Size [enum] - button's type;
Icon [enum] - button's icon;
Color [string] - button's color;
Visible [boolean] - button's visibility state;
Enabled [boolean] - button's enabled/disabled state;
Loading [boolean] - button's loading state.
Performs a button click
Input parameters:
Component Id [string] - button component's identifier.
Resets all button states to default
Input parameters:
Component Id [string] - button component's identifier.
Sets the loading state to true
Input parameters:
Component Id [string] - button component's identifier.
Sets the loading state to false Input parameters:
Component Id [string] - button component's identifier.
Sets the enabled state to true
Input parameters:
Component Id [string] - button component's identifier.
Sets the enabled state to false
Input parameters:
Component Id [string] - button component's identifier.
Sets the visible state to true
Input parameters:
Component Id [string] - button component's identifier.
Sets the visible state to false
Input parameters:
Component Id [string] - button component's identifier.
For example, using a button to open a modal window