New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to initialize datatable with existing array? #9681
Comments
Need a little more information, maybe a code snippet of what you have, and what you are trying to accomplish. 1 - Setting data attribute in the data-wb-tables array columns:
|
Thanks for help! I guess im wondering if instead of "ajax" property in your example can we just the set "data" on the DataTable docs, they show you can init a table with "data" prop, is it possible to do with the "data-wb-tables" attribute? https://datatables.net/examples/data_sources/js_array.html
|
Yes you can, you must define each columns data, for the data you supply. Here is working code for what you want,
|
Hello,
Is it possible to set the data attribute on the data-wb-tables with an existing array?
The text was updated successfully, but these errors were encountered: