Modal Datatable Question
Modal Datatable Question
I am trying to create a datatable using this modal datatable example.
https://datatables.net/extensions/responsive/examples/display-types/jqueryui-modal.html
It works fine. However I have following questions. I couldn't find example for this.
1) Where do I define which column will have the modal data. In my case, I want it on the last column.
2) How do I define the text for modal? I want custom text for each row.
3) Can I have multiple modal data in each row? Use links instead of button.
Thanks
Answers
That modal is part of the Responsive extension. Are you wanting to use responsive or do you want to create a modal that opens when clicking a row?
Kevin
Modal that opens when clicking on a row. Thanks.
This link shows how to get the data of the clicked row. Change the alert statement to populate the modal. Datatables doesn't have anything builtin to display modals so you will need to create custom code based on the frameworks you are using.
Kevin