Hello fam, I'm working on a admin dashboard UI and using AlpineJS for small interactions.
I got some data to deal with as well and I'm using vanilla JS library called Simple-DataTables
Now my issue is - say I got two tabs on my page and one of the tab is visible by default and datatables are just perfect and another one is set to display:none
by AlpineJS.
Now, when I switch to another tab, the table is there but no datatable controls and tried a lot like the options datatable library provides like .init()
.refresh()
.update()
I don't want to use jQuery or something, please help me with this! :)
I'm here if you need anymore info or code :)
Top comments (0)