I’ve read this post: How to use DataTables.net
It’s great, yet I see many (including the post creator crystaltaggart) are having a loading issue. The dmx-on:done
or dmx-on:success
in the data component seems to be triggering the DataTable script before finishing the data fetching, resulting in a ‘No data available in table’ DataTable error. In fact, jellederijke mentioned it on this comment: How to use DataTables.net
Though I added a wait 1ms component before initializing the destroy_dt and load_dt functions, sometimes it doesn’t work as expected (not every loading time works the same). Do you have any idea @patrick how to solve this problem?
-
Initialization Sequence : Is
dmx-on:success
ordmx-on:done
the best event to ensure that DataTables initializes only after the table is fully populated? - Conflict Resolution : Are there known issues or best practices for using DataTables with Wappler’s ServerConnect component?