The really quick quickstart:
- Copy & paste library.js (or library_min.js) into your macro editor
- Add in some $ugar (below a click handler which logs its event and shows an alert)
$('button1').on('click', (event) => {
console.log('#', event); // event: { id: '1', PanelId: 'button1' }
$().showAlert('You tapped button 1!');
});
See some examples
See API Reference