$('.js-mytooltip').myTooltip();
// custom-events $('.custom-event').on('show-before', function(event) { console.log('show-before!') }); $('.custom-event').on('show-complete', function(event, content) { console.info(content); console.log('show-complete!'); }); $('.custom-event').on('hide-before', function(event) { console.log('hide-before!'); }); $('.custom-event').on('hide-complete', function(event) { console.log('hide-complete!'); });
// destroy $('.destroy-element').on('click', function(event) { event.preventDefault(); $('.destroy-current').myTooltip('destroy'); }); // call setTimeout(function() { $('.download-header').myTooltip('call'); }, 300);