diff --git a/packages/main/src/TabContainer.hbs b/packages/main/src/TabContainer.hbs index a877845a3783..b06bfe628c84 100644 --- a/packages/main/src/TabContainer.hbs +++ b/packages/main/src/TabContainer.hbs @@ -25,16 +25,10 @@ ?disabled="{{this.disabled}}" aria-labelledby="{{this.ariaLabelledBy}}" > - {{#if this.isTextOnlyTab}} - {{> textOnlyTab}} - {{/if}} - - {{#if this.isIconTab}} - {{> iconTab}} - {{/if}} - - {{#if this.isMixedModeTab}} - {{> mixedModeTab}} + {{#if this.isInline}} + {{> inlineTab}} + {{else}} + {{> standardTab}} {{/if}} {{/unless}} @@ -71,23 +65,12 @@ -{{#*inline "textOnlyTab"}} -
main text
and the additionalText
of a tab.
+ * main text
and the additionalText
would be displayed vertically by defualt,
+ * but when set to Inline
, they would be displayed horizontally.
+ * Standard
Inline
main text
and additionalText
are displayed horizotally.
+ * @public
+ * @type {Inline}
+ */
+ Inline: "Inline",
+
+ /**
+ * Standard type, the tab main text
and additionalText
are displayed vertically.
+ * @public
+ * @type {Standard}
+ */
+ Standard: "Standard",
+};
+
+/**
+ * @class
+ * Different types of Tab layouts.
+ * @constructor
+ * @author SAP SE
+ * @alias sap.ui.webcomponents.main.types.TabLayout
+ * @public
+ * @enum {string}
+ */
+class TabLayout extends DataType {
+ static isValid(value) {
+ return !!TabLayouts[value];
+ }
+}
+
+TabLayout.generataTypeAcessors(TabLayouts);
+
+export default TabLayout;
diff --git a/packages/main/test/pages/TabContainer.html b/packages/main/test/pages/TabContainer.html
index 5c235c91270e..bcb2b53a1856 100644
--- a/packages/main/test/pages/TabContainer.html
+++ b/packages/main/test/pages/TabContainer.html
@@ -226,14 +226,34 @@ ++ + ++ ++ ++ ++ +
++ + + ++ ++ ++ ++ ++ ++ ++ +