jc-button
Button component used in custom components.
The schema defines the following properties:
Property | Type | Required | Description |
type | component.button | true | |
instanceId | InstanceId | Expression | false | |
when | Expression | boolean | false | |
options | Button Options | true | |
Properties of the options object:
Property | Type | Required | Description |
title | string | Expression | TextWithFormat | TextLocale | true | |
isCompact | boolean | string | false | If the button should be compact. |
type | primary | secondary | tertiary | string | false | Predefined button style |
onPress | false | Action that will be triggered by pressing on this component. | |
icon | Icon | false | Icon to be displayed on the left side or right side of the button. |
style | Style | false | Style of the button. More of them can be true. It will be evaluated based on priority. |
If the button should be compact.
The object must be any of the following types:
Predefined button style
The object must be any of the following types:
Action that will be triggered by pressing on this component.
Icon to be displayed on the left side or right side of the button.
Properties of the icon object:
left (icon-name | string)
The object must be any of the following types:
right (icon-name | string)
The object must be any of the following types:
Style of the button. More of them can be true. It will be evaluated based on priority.
Properties of the style object:
Property | Type | Required | Description |
isDisabled | boolean | string | false | Change style to disable. User can't do anything with button when disabled. |
isBusy | boolean | string | false | Displays spinner on button. |
Change style to disable. User can't do anything with button when disabled.
The object must be any of the following types:
Displays spinner on button.
The object must be any of the following types: