Tag

Blog

29 posts tagged Blog

Clear tag
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 …

2 min read

HowTo: Add a Button using a Ui Component in Magento 2

Buttons in the admin used to be a one liner in Magento 1. In Magento 2, when your page is a Ui Component, you add a button through the component: you declare it in the XML and back it with a …

2 min read

HowTo: Magento 2 Add a field to the product edit form

Adding a field to the product edit form in the admin is one of those things that feels harder than it should the first time, because the form is a Ui Component and not a plain layout. Once …