M2 | Can we create one field by dataprovider and one field by uicmponent in single group at Product Creation Page?
-
28-02-2021 - |
解決
Toggle checkbox can be created via DataProvider as well. DataProvider (PHP) and UI Component (XML) files are two ways to generate the same configuration to render the elements.
Therefore you can create any kind of elements in both ways. Just need to make sure your code use the correct format and don't miss the required config.
In your case, you can try to move the config for toggle checkbox from XML file to your meta array in your DataProvider with the same key/values.
所属していません magento.stackexchange