Skip to content

Commit

Permalink
Add demo for open/close dialog events
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkh committed Mar 30, 2020
1 parent dc7b6e4 commit d5d35c7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions demo/dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@
})
}
const lineup = LineUpJS.asTaggle(document.querySelector('article div'), arr);

lineup.on('dialogOpened', (dialog) => {
console.log('dialog opened', dialog);
});

lineup.on('dialogClosed', (dialog, action) => {
console.log('dialog closed', dialog, action);
});
};
</script>

Expand Down

0 comments on commit d5d35c7

Please sign in to comment.