How to close the buttons collection button menu?
How to close the buttons collection button menu?
Hi!
I'm trying out the new fancy buttons extension. And I have made a buttons collections like this:
$.fn.dataTable.ext.buttons.abb= {
className: 'abb',
extend: 'collection',
text: 'ABB',
buttons: [
{
text: 'Print',
className: 'sik-btn-abb-print',
action: function ()
{
console.log(this.text);
}
}
],
fade: false
};
Once it's fired by someone clicking the collection button "ABB", the collection-menu is shown. But when the button Print is clicked, the menu is still active. This makes sence in some cases, but I would like to know how to close the collection-menu.
Also, the fade: false option doesnt seem to work - the screen still fades in - which is a pretty cool feature, btw.
Thanks in advanced.
(edit: added Markdown)
Answers
I had to move on, and solved it with
If there is a function for closing the buttons collection, I must have missed it and would still be intressted in it. If there isn't any, it would be neat to have one ;)
Anyhoo, I consider this as closed - good weekend! :)