diff property of the button object
The purpose of the diff
modification array of the button object is to configure the button layout on the record page by using a configuration object. Set up the layout in the view model schema of the record page. Learn more about the schema properties in a different article: Client schema.
Properties
operation
The button operation.
Available values
set | Sets the button value using the |
merge | Merges the values from the parent, replaced, and replacing schemas. The properties from the |
remove | Deletes the button from the schema. |
move | Moves the button to a different parent element. |
insert | Adds the button to the schema. |
parentName
The meta name of the parent control element to place the button. If it is a functional button, LeftContainer
and RightContainer
can act as parent containers.
propertyName
The name of the parent element’s parameter. Specify the items
value for the button.
name
The meta name of the added button.
values
A configuration object that contains settings for additional properties of the button.
Configuration object properties
itemType | The element type. Set by the | ||||||||||||
caption | The button caption. We recommend setting the caption values by binding them to a localized schema string. | ||||||||||||
click | Binds the button click handler method. | ||||||||||||
layout | The object that contains the settings for the button location in the grid. | ||||||||||||
enabled | Controls the button availability (active status). | ||||||||||||
visible | Controls button visibility. | ||||||||||||
style | The component style. Set by the Terrasoft.controls.ButtonEnums.style enumeration. Available values (Terrasoft.controls.ButtonEnums.style)
|