Skip to content

Commit

Permalink
update property
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga committed Dec 15, 2024
1 parent a1930c2 commit 42ff775
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ public void windowCreated(TiBaseActivity activity, Bundle savedInstanceState)
((TiUITabLayoutTabGroup) view).setTabMode((Integer) getProperty(TiC.PROPERTY_TAB_MODE));
}
} else {
if (TiConvert.toBoolean(getProperty("newLayout"), false)) {
if (TiConvert.toBoolean(getProperty("experimental"), false)) {
view = new TiUIBottomNavigation(this, activity);
} else {
view = new TiUIBottomNavigationTabGroup(this, activity);
Expand Down
4 changes: 2 additions & 2 deletions apidoc/Titanium/UI/Tab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,13 +255,13 @@ properties:
otherwise.
#### Android Tab Icons
Can be used in combination with `iconFamily` in a BottomNavigation setup with `newLayout:true`.
Can be used in combination with `iconFamily` in a BottomNavigation setup with `experimental:true`.
type: String

- name: iconFamily
summary: Specifies the font family or specific font to use.
description: |
When using a BottomNavigation setup with `newLayout:true` you can use this property in combination
When using a BottomNavigation setup with `experimental:true` you can use this property in combination
with an `icon` to use an icon-font for the tab icons:
``` js
Expand Down
6 changes: 3 additions & 3 deletions apidoc/Titanium/UI/TabGroup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ description: |
one to be opened later, but the root of the application must be a heavyweight window to prevent
it exiting. Tabs cannot be removed from the tab group once added, and tabs cannot be reordered.
* If you use a BottomNavigation on Android with a Material 3 theme you should set `newLayout:true`.
* If you use a BottomNavigation on Android with a Material 3 theme you should set `experimental:true`.
* On iOS, more than one tab group may exist, and may be opened and closed as required.
Each tab can contain a stack of windows, and the user can switch between them by tapping the
Expand Down Expand Up @@ -636,7 +636,7 @@ properties:
since: "12.5.0"
availability: creation

- name: newLayout
- name: experimental
summary: |
Only used for a BottomNavigation setup. If set to `true` it will use an optimized BottomNavigation
setup with fixes for Material 3 layouts and new properties: `indicatorColor` and `iconFamily`.
Expand Down Expand Up @@ -759,7 +759,7 @@ examples:
const bottomNav = Ti.UI.createTabGroup({
tabs: [tab1, tab2],
theme: "Theme.Titanium.Material3.DayNight",
newLayout: true,
experimental: true,
style: Ti.UI.Android.TABS_STYLE_BOTTOM_NAVIGATION
});
Expand Down

0 comments on commit 42ff775

Please sign in to comment.