Datatables in nav-tab Laravel

Datatables in nav-tab Laravel

NoobieMonNoobieMon Posts: 5Questions: 2Answers: 0

The code creates a new tab-content for each item of an array, the tab-content is a table that is created inside a foreach (item). But only the first tab has the datatable and the others look like a normal table. How can it be solved?

Replies

  • kthorngrenkthorngren Posts: 20,302Questions: 26Answers: 4,769

    That suggests you either aren't initializing Datatables for the other tables or you are getting errors. Look in the browser's console for errors.

    Kevin

  • NoobieMonNoobieMon Posts: 5Questions: 2Answers: 0
    edited July 2020

    Yes, I was initializing only one table.
    I guess it was solved initializing them in a separated script with a foreach and then just reference it from the respective tab.

This discussion has been closed.