使用 ion-tabs 实现常规选项卡
Implement regular tab with ion-tabs
是否可以使用 ion-tabs 实现常规选项卡?
我的意思是像在桌面应用程序中一样:
Stuff above the tabs
Tabs 1
| Tab 2
| (white space covering the rest of the row)
Contents
Stuff below the tabs
是的,这绝对是可能的,但 Ionic 中的命名略有不同。
您要查找的内容称为 段 (基本上是一页内的选项卡,与 "ionic tabs" 不同,后者是单独的页面)。根据文档:
A Segment is a group of buttons, sometimes known as Segmented
Controls, that allow the user to interact with a compact group of a
number of controls. Segments provide functionality similar to tabs,
selecting one will unselect all others. You should use a tab bar
instead of a segmented control when you want to let the user move back
and forth between distinct pages in your app.
https://ionicframework.com/docs/api/components/segment/Segment/
是否可以使用 ion-tabs 实现常规选项卡?
我的意思是像在桌面应用程序中一样:
Stuff above the tabs
Tabs 1
| Tab 2
| (white space covering the rest of the row)
Contents
Stuff below the tabs
是的,这绝对是可能的,但 Ionic 中的命名略有不同。
您要查找的内容称为 段 (基本上是一页内的选项卡,与 "ionic tabs" 不同,后者是单独的页面)。根据文档:
A Segment is a group of buttons, sometimes known as Segmented Controls, that allow the user to interact with a compact group of a number of controls. Segments provide functionality similar to tabs, selecting one will unselect all others. You should use a tab bar instead of a segmented control when you want to let the user move back and forth between distinct pages in your app.
https://ionicframework.com/docs/api/components/segment/Segment/