Bootstrap 5 - Buttons
Bootstrap 5 - Buttons
BJW86
Posts: 30Questions: 11Answers: 0
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
Answers
You have
buttons: [ 'Colvis']
with an upper caseC
. It should becolvis
like 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
ajax
option 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 theinitComplete
callback: http://live.datatables.net/diweyaga/2/edit .Allan
Hi Allan, that's brilliant thank you, I have it working now.
Bruce