I'm trying to create an admin form in Magento 2 using UI-components and I want to make it have the M1 look with tabs instead of collapsible fieldsets.
I did some digging and found that there are 2 types of layouts defined.
- generic (collapsible fieldsets)
- tabs.
They are defined in the di.xml
of the module Magento_Ui
.
<type name="Magento\Framework\View\Layout\Pool">
<arguments>
<argument name="types" xsi:type="array">
<item name="generic" xsi:type="array">
<item name="class" xsi:type="string">Magento\Framework\View\Layout\Generic</item>
<item name="template" xsi:type="string">templates/layout/generic</item>
</item>
<item name="tabs" xsi:type="array">
<item name="class" xsi:type="string">Magento\Ui\Component\Layout\Tabs</item>
<item name="template" xsi:type="string">templates/layout/tabs</item>
</item>
</argument>
</arguments>
</type>
I found also that by adding this inside of my ui component file, changes something but the form does not load.
<item name="layout" xsi:type="array">
<item name="type" xsi:type="string">tabs</item>
</item>
Also I did not find the template referenced by the di.xml
mentioned above called templates/layout/tabs
.
Am I missing something or is this an unfinished feature?