Hello,
I added a button from how it's described in the academy article.
My issue is the button gets misaligned when the mini list gets open on the left hand side.


How would I go about fixing this?
Thanks in advance.
Code for button
{
"operation": "insert",
"parentName": "ActionButtonsContainer",
"propertyName": "items",
"name": "EmailContactButton",
"values": {
itemType: Terrasoft.ViewItemType.BUTTON,
caption: { bindTo: "Resources.Strings.EmailContactButton" },
click: { bindTo: "openEmailDialog" },
enabled: { bindTo: "isEmailingEnabled" }
}
}
Like
1 comments
19:29 Feb 04, 2021
Hello Tyler,
Adding this code to the AccountSectionV2 schema resulted in the button that also aligns correctly on the page when opening vertical view on the page:
{
"operation":"insert",
"name": "TestButton",
"parentName": "CombinedModeActionButtonsCardLeftContainer",
"propertyName": "items",
"values": {
"itemType": Terrasoft.ViewItemType.BUTTON,
"caption": {bindTo: "Resources.Strings.CustomButtonCaption"},
"style": Terrasoft.controls.ButtonEnums.style.GREEN
}
}Please use another "parentName" value - CombinedModeActionButtonsCardLeftContainer. See the result:

Best regards,
Oscar
Show all comments