I am using Apex 19.1, and I have an Interactive grid. I found an example on the internet on how to add a delete button at the top, and how to add icons to the Add and Save buttons (see below). This works great, but I have an Edit button that I would add an icon to also. This Edit button was automatically generated when I created the form - how do I reference it to add the icon? I've tried things like "editAction" but none of my attempts have worked. Is it possible to see what all these default button names are? Is it possible to see a full list of all this pre-loaded icons (like icon-ig-delete) and add some icons of my own? Please advise. Thank you.
function(config) {
let $ = apex.jQuery,
toolbarData = $.apex.interactiveGrid.copyDefaultToolbar(), // copy the whole toolbar
toolbarGroup = toolbarData.toolbarFind("actions3"); // this is the group with the action=add row
// add a new "delete" button
toolbarGroup.controls.push({type: "BUTTON",
action: "selection-delete",
icon: "icon-ig-delete",
iconBeforeLabel: true,
hot: true
});
addrowAction = toolbarData.toolbarFind("selection-add-row"), //add row button
addrowAction.icon = "icon-ig-add-row";
addrowAction.iconBeforeLabel = true;
addrowAction.hot = true;
saveAction = toolbarData.toolbarFind("save"),
saveAction.icon = "icon-ig-save";
saveAction.iconBeforeLabel = true;
saveAction.hot = true;
//store the config
config.toolbarData = toolbarData;
return config;
}