Hi,
I'm extending the IG toolbar programmatically using copyDefaultToolbar() and toolbarFind(), then pushing custom buttons. The official docs only mention basic properties like type, action, and iconBeforeLabel.
I want to apply the t-Button--warning class to a button (or other APEX theme classes), but I'm unsure which property to use. I've tried:
var toolbarGroup = toolbarData.toolbarFind("actions3");
toolbarGroup.controls.push({
type: "BUTTON",
action: "add-supplier",
label: "Add Supplier",
icon: "fa fa-plus",
iconBeforeLabel: true,
hot: true,
cssClasses: "t-Button--warning" // This doesn't work
});
Any guidance would be appreciated!
Thanks.