You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/src/components/tabbar/tabbar.tsx
+12-5Lines changed: 12 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -26,16 +26,22 @@ export class Tabbar {
26
26
@State()canScrollRight=false;
27
27
@State()hidden=false;
28
28
29
-
/** The layout of the title and icons */
29
+
/**
30
+
* Set the layout of the text and icon in the tabbar. Available options: `"icon-top"`, `"icon-start"`, `"icon-end"`, `"icon-bottom"`, `"icon-hide"`, `"label-hide"`.
31
+
*/
30
32
@Prop()layout: TabbarLayout='icon-top';
31
33
32
-
/** The placement of the tabbar in the app */
34
+
/**
35
+
* Set the position of the tabbar, relative to the content. Available options: `"top"`, `"bottom"`.
36
+
*/
33
37
@Prop()placement: TabbarPlacement='bottom';
34
38
35
39
/** The selected tab component */
36
40
@Prop()selectedTab?: HTMLIonTabElement;
37
41
38
-
/** If the tabbar is scrollable or not */
42
+
/**
43
+
* If true, the tabs will be scrollable when there are enough tabs to overflow the width of the screen.
44
+
*/
39
45
@Prop()scrollable=false;
40
46
41
47
/** The tabs to render */
@@ -47,8 +53,9 @@ export class Tabbar {
47
53
this.highlight&&this.updateHighlight();
48
54
}
49
55
50
-
51
-
/** If the tabbar should include the highlight on the active tab */
56
+
/**
57
+
* If true, show the tab highlight bar under the selected tab.
* Set the layout of the text and icon in the tabbar. Available options: `"icon-top"`, `"icon-start"`, `"icon-end"`, `"icon-bottom"`, `"icon-hide"`, `"label-hide"`.
0 commit comments