Question
Inserting button on section page and on the left of the Actions button
16:00 Oct 05, 2018
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?
Like
1 comments
17:33 Oct 27, 2018
Dear Carlos,
You can find detailed description on our Academy. You will need this part:
// Setting the location of the button. "layout": { "column": 1, "row": 6, "colSpan": 1 } }
Show all comments