Button component
Use the Button component to add buttons.
View the example of a configuration object that adds the button below.
{
"type": "crt.Button",
"clicked": {
/* Creatio lets you bind the sending of base or custom request to the button click event. */
"request": "crt.CreateRecordRequest"
},
"icon": "open-button-icon",
"caption": "Button",
"color": "primary",
"size": "medium",
"iconPosition": "left-icon",
"menuTitle": "Menu title" /*Added.*/,
"menuItems": [
{
"type": "crt.MenuItem",
"caption": "Menu item 1",
"clicked": {
/* Creatio lets you bind the sending of base or custom request to the button click event. */
"request": "crt.SetViewModelAttributeRequest",
"params": {
"attributeName": "CalendarViewMode",
"value": "day"
}
},
},
{...}
...
]
}
string type
Component type. crt.Button for the Button component.
object clicked
The request fires when a user clicks the button. Creatio lets you bind the sending of a base request or custom request handlers implemented in remote module to the button click event.
string icon
Icon to display next to the menu item caption.
Available values
string caption
Localizable button caption.
string color
Button style. Out of the box, "default."
boolean disabled
Indicates whether the button is disabled. Out of the box, "false."
Available values
Value | Description |
|---|---|
true | The button is disabled. |
false | The button is enabled. |
string size
Button size. Out of the box, "large."
string iconPosition
Position of the icon relative to the button caption. Out of the box, "left-icon."
Available values
string menuTitle
Title of the menu picker.
array of objects menuItems
List of button menu items. Displayed at the bottom of the page after clicking the button. When the menuItems property is used the clicked button property is ignored. To add the button menu item, use the Menu item component.








































































