Convert HTML table to datatable inside editor plugin
Convert HTML table to datatable inside editor plugin
Link to test case: http://live.datatables.net/huyemibu/4/edit
Description of problem:
Hello all,
I am working on trying to display a table inside my editor form. I have created a plugin that actually creates the table (see above link) but I am not sure how to initialize it as a Datatable (DT). For simplicity, I created a DT with zero configuration options inside the create method of the plug in. Unfortunately, this does not work. I suspect I am trying to do things before or after I should/can and need some assistance.
Thoughts? Is it even possible?
This question has an accepted answers - jump to answer
Answers
You could try it in the event
open
, as shown here: http://live.datatables.net/huyemibu/5/editYou'll need to put the table inside a container to ensure it doesn't spill over, and maybe use Responsive to ensure it looks OK.
Colin
Colin! You sir are a genius.
Thank you so much!