mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
* test(e2e): add tab strip items pages * fix(ios-tabs): a crash on swiping a content item Fixes https://github.com/NativeScript/NativeScript/issues/7459. * feat(android-tabs): create tab item spec from image and label Implements https://github.com/NativeScript/nativescript-angular/issues/1884 for Android. * feat(ios-tabs): tab bar item appearance Implements https://github.com/NativeScript/NativeScript/issues/7436 and https://github.com/NativeScript/nativescript-angular/issues/1884. * refactor(ios-tabs): move _hasImage and _hasTitle properties
37 lines
827 B
TypeScript
37 lines
827 B
TypeScript
/**
|
|
* Contains the TabStrip class, which represents a tab strip for tab navigation.
|
|
* @module "ui/tab-navigation/tab-strip"
|
|
*/ /** */
|
|
|
|
import { View, Property } from "../../core/view";
|
|
import { Color } from "../../../color";
|
|
import { TabStripItem } from "../tab-strip-item";
|
|
|
|
/**
|
|
* Represents a tab strip.
|
|
*/
|
|
export class TabStrip extends View {
|
|
|
|
/**
|
|
* Gets or sets the items of the tab strip.
|
|
*/
|
|
items: Array<TabStripItem>;
|
|
|
|
/**
|
|
* Gets or sets the icon rendering mode on iOS
|
|
*/
|
|
iosIconRenderingMode: "automatic" | "alwaysOriginal" | "alwaysTemplate";
|
|
|
|
/**
|
|
* @private
|
|
*/
|
|
_hasImage: boolean;
|
|
|
|
/**
|
|
* @private
|
|
*/
|
|
_hasTitle: boolean;
|
|
}
|
|
|
|
export const iosIconRenderingModeProperty: Property<TabStrip, "automatic" | "alwaysOriginal" | "alwaysTemplate">;
|