Open DiMono opened 6 years ago
I have same question..
I have t he same question as well...
@DiMono How can you de-initialize that I am breaking my head and still doesn't work
@Erth0 you do it as follows:
mymultiselect = new $.Fastselect($('#myselect'),{param1: value1, etc});
[. . . stuff happens . . .]
mymultiselect.destroy();
$('#myselect').WhateverNeedsDoing;
mymultiselect = new $.Fastselect($('#myselect'),{param1: value1, etc});
@DiMono I am able to destroy that however when I edit back again the options are still there
@Erth0 The following works for me. If it doesn't work for you, then I'm out of ideas.
mymultiselect.destroy();
$(OptionToRemove).remove();
mymultiselect = new $.FastSelect(etc);
I have a multiselect which might have options added to or removed from it after the data is loaded and the fastselect is initialized. Is there a way to programmatically add/remove them from the rendered fastselect without de-initializing it, adding/removing the option directly, and re-initializing it?