Adding custom actions to the toolbar in Touch UI
I have a few components that were created for CQ 5.4 and use custom actions in the editbar. As we migrate to AEM 6.1, I'd like to support these in both Classic UI and Touch UI. I found this demo https://github.com/Adobe-Marketing-Cloud/aem-authoring-extension-toolbar-screenshot that I've tried implementing, but it looks like that adds the action to all components - I only want it on certain ones. Additionally, I'd prefer not to define my handler directly on a node in the repository - having to ensure valid XML in my code would be pretty challenging. I found this example http://experience-aem.blogspot.com/2015/04/aem-6-sp2-touch-ui-open-component-dialog.html, but I'm getting JS errors when I try to use it or adapt it.
Is this somethign that's possible, and are there examples out there for it?
Thanks