Skip to main content
Version: 8.1

diff property of the button object

Level: beginner

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 values parameter.

merge

Merges the values from the parent, replaced, and replacing schemas. The properties from the values parameter of the last descendant override the other values.

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 Terrasoft.ViewItemType enumeration. Use the BUTTON value for the button.

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)

DEFAULT

Default style.

GREEN

The button color is green.

RED

The button color is red.

BLUE

The button color is blue.

GREY

The button color is grey.

TRANSPARENT

The button is transparent. The value from older Creatio versions.