Modal Datatable Question

Modal Datatable Question

Noodles12Noodles12 Posts: 113Questions: 41Answers: 2

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

  • kthorngrenkthorngren Posts: 21,341Questions: 26Answers: 4,954

    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

  • Noodles12Noodles12 Posts: 113Questions: 41Answers: 2

    Modal that opens when clicking on a row. Thanks.

  • kthorngrenkthorngren Posts: 21,341Questions: 26Answers: 4,954

    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

Sign In or Register to comment.