1

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 2

0

Maybe you could try this, you can add a page to the admin panel and make a custom PHTML file with the datatable.

2
  • your mentioned link is only to add page in admin panel. Commented Feb 15, 2019 at 9:41
  • isnt, that wat you are asking to add? Commented Feb 15, 2019 at 9:53
0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.