drumjs icon indicating copy to clipboard operation
drumjs copied to clipboard

Restart drum

Open povtasci opened this issue 9 years ago • 2 comments

I need to restart the plugin for some cases depend on something, is there any way for this ?

povtasci avatar Jul 13 '15 08:07 povtasci

when click Reset button, i need to restart default value

duyphuong2101 avatar Aug 11 '16 02:08 duyphuong2101

If I understand your requirement (like my own)... you need to reset this:

element.data('drum', null)

Have a look at drum.js file and find line 331

if (!element.data('drum')) {

This line is getting in your (our way). In my case I have one drum options filter the list shown in another drum.

cyclomaticsegal avatar Aug 27 '16 14:08 cyclomaticsegal