Is there any way to generate data tables on modal?

Is there any way to generate data tables on modal?

sedategoofisedategoofi Posts: 6Questions: 4Answers: 0

I need a guidance to generate datatables on a modal bootstrap , means need a array data on modal.

Answers

  • kthorngrenkthorngren Posts: 17,724Questions: 25Answers: 4,204

    Create the modal like you normally would with an HTML table and initialize Datatables. It would like similar to this BS tabs example. You will also need to use api columns.adjust() when the modal is shown to recalculate the column widths.

    You should be able to find examples on the forum for Datatables with Bootstrap modals.

    Kevin

  • rf1234rf1234 Posts: 2,523Questions: 79Answers: 369

    I think this post is fairly comprehensive on how to set up a data table in a BS modal
    https://datatables.net/forums/discussion/comment/169296/

Sign In or Register to comment.