Add sub-button to collection dynamically
Add sub-button to collection dynamically
brunorr.dva
Posts: 2Questions: 1Answers: 0
Guys,
Does anyone know, how can I add a sub-button to a button collection?
I tried table.button().add( 'collection index'..., but didn't work
This discussion has been closed.
Answers
Hi brunorr.dva, I have been able to do this in my applications, it is a bit touchy though. Make sure you have the table instance, and the collection index correct
This will insert a custom button at the 2 index in your button collection.
Hi Rob,
Thank's for your reply, but what I need is to add a button to a button that extends 'collection' (https://datatables.net/extensions/buttons/examples/initialisation/collections.html).
I have the same need, but I can't find the answer. Do you know the solution?
Hi,
The documentation for
button().add()
notes that theindex
parameter can be:Example: http://live.datatables.net/nexesufe/1/edit
Allan