I want to access the built-in Dialogboxes (say “add-sparkline”) programmatically, outside the predefined buttons on the toolbar. How do I do that?
There isn’t any direct way to get to dialog boxes, but you can call the related event, “onCommand” and pass the necessary action to it:
$$("ssheet").callEvent("onCommand", [{id:"add-sparkline"}]);
Only note that a cell or area should be selected in the main view.