Bootstrap 5 - Buttons
Bootstrap 5 - Buttons
Im trying to get column visibility button working with Bootstrap 5 but I seem to be running into trouble getting any buttons to show.
Test case: http://live.datatables.net/tomodake/1/edit
Does anyone know that Im doing wrong?
Thank you,
Bruce
This discussion has been closed.
Answers
You have
buttons: [ 'Colvis']with an upper caseC. It should becolvislike thisbuttons: [ 'colvis']with a lower casec.http://live.datatables.net/tomodake/2/edit
Kevin
Ah well spotted, thank you Kevin!
Bruce
Im also having some trouble with clovis button when loading data through ajax,
for example: http://live.datatables.net/diweyaga/1/edit
Is there something I'm doing wrong here?
Thanks,
Bruce
The
ajaxoption makes the table initialisation async, so the DOM element your insert selector is looking for isn't present when that code is run. Wait for it using theinitCompletecallback: http://live.datatables.net/diweyaga/2/edit .Allan
Hi Allan, that's brilliant thank you, I have it working now.
Bruce