Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 533 Bytes

quickstart.md

File metadata and controls

20 lines (13 loc) · 533 Bytes

$ugar Quickstart

The really quick quickstart:

  1. Copy & paste library.js (or library_min.js) into your macro editor

copy

  1. 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