1 (20%) 5 votes

In the admin page, sometime we want to show a listing item beside the inputs in a form. Example, you want to show related product of a product on the product editing page. However, core magento uses the data provider to modify meta, it is quite complicate. We will learn it in the future. Today, we will try to show listing items on the form by using ui component “InsertListing”.

show listing items on the form
show listing items on the form

You can see it in more detail in the file \vendor\magento\module-ui\view\base\ui_component\etc\definition.xml :

It has js component \vendor\magento\module-ui\view\base\web\js\form\components\insert-listing.js.

In my project, I used this component like :

You will see it in admin page like below screenshot:

 show listing items on the form
show listing items on the form

Check here for Magento extensions and Magento 2 extensions now !

Your Magento website needs a powerful Magento ERP for stock control.

DON'T MISS THE CHANCE!

magento erp

Practical Way of Using VirtualType in Magento 2
How to Create Auto Update Time Attributes in InstallSchema of Magento 2