Edit in GitHubLog an issue

Tab component

The Tab component implements a tab content area.

See the Admin Design Pattern Library (Tabs) topic for information about the UI design patterns that can be implemented using the Tab component.

Options

OptionDescriptionTypeDefault
component
The path to the component’s JS constructor, in terms of RequireJS.
String
Magento_Ui/js/form/components/area
template
The path to the component’s .html template.
String
templates/layout/tabs/tab/default
uniqueNs
Unique namespace for the component.
String
params.activeArea

Examples

Integration

This example integrates the Tab component with the Form component.

Copied to your clipboard
<form>
...
<argument name="data" xsi:type="array">
...
<item name="label" xsi:type="string" translate="true">Tabs</item>
</argument>
<settings>
...
<layout>
<navContainerName>left</navContainerName>
<type>tabs</type>
</layout>
</settings>
<fieldset name="tab1">
<settings>
...
<label translate="true">Tab 1</label>
</settings>
...
</fieldset>
<fieldset name="tab2">
<settings>
...
<label translate="true">Tab 2</label>
</settings>
...
</fieldset>
</form>

Results

Ui tab result

  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.