Open reatlat opened 5 years ago
New version ClipBoardJS override my on-click events have to be fixed with callback events
var clipboard = new ClipboardJS('.btn'); clipboard.on('success', function(e) { console.info('Action:', e.action); console.info('Text:', e.text); console.info('Trigger:', e.trigger); e.clearSelection(); }); clipboard.on('error', function(e) { console.error('Action:', e.action); console.error('Trigger:', e.trigger); });
New version ClipBoardJS override my on-click events have to be fixed with callback events