I want to use datatable for custom module phtml in the admin panel. Should i use bootstrap datatable as mentioned in this link.
Or, there is any standard builtin feature to add datatable in Magento 2 admin panel.
2 Answers
Maybe you could try this, you can add a page to the admin panel and make a custom PHTML file with the datatable.
-
your mentioned link is only to add page in admin panel. Commented Feb 15, 2019 at 9:41
-
In Magento what you're describing is commonly known as an "Admin Grid". This is an admin table which lists the items from your database and provides common features like sort, filter, delete, update item, etc. This layout component already exists in the Magento "Framework" so it would be normal practice to use this rather than create something bespoke using DataTables. There is a good tutorial at MagePlaza for how to create an admin grid in Magento 2.