Tag

Magento 2

22 posts tagged Magento 2

Clear tag
1 min read

HowTo: Magento 2 Admin Grid using Ui Components

Recently I was tasked to create an admin grid to let users manage the records of a custom entity from the backoffice. Although I had read and heard plenty about it, I had never had the …

1 min read

Show Success, Error, Warning messages in Magento 2

To be able to output warnings, error and notice messages in our modules we have to use the following interface \Magento\Framework\Message\ManagerInterface. The best way to use it is through …

2 min read

HowTo: Use the InsertListing Ui Component in Magento 2

Every now and then you need to embed a grid inside a form, think of the “add products to a category” screen, where a listing lets you tick the records you want and the selection is stored …

2 min read

HowTo: Use the Form Ui Component in Magento 2

The Form Ui Component is what Magento uses everywhere in the admin to render edit screens. The first time you build one it feels like a lot of XML for a simple form, but the pattern is …