I'm trying to insert a custom button on a section page my code looks like that:
{
"operation": "insert",
"name": "DailyReportButton",
"parentName": "SeparateModeActionButtonsLeftContainer",
"propertyName": "items",
"values": {
"itemType": Terrasoft.ViewItemType.BUTTON,
"style": Terrasoft.controls.ButtonEnums.style.BLUE,
"caption": {"bindTo": "Resources.Strings.DailyReport"},
"click": {"bindTo": "generateDailyReport"},
"classes": {
"textClass": ["actions-button-margin-right"],
"wrapperClass": ["actions-button-margin-right"]
},
}
}
It works but I don't know how to specify exactly where the button should be placed. In this case I want it to be between New and Actions buttons. I tried experimenting with setting values.index but it didn't seem to change anything. Do you know how to do that?