chore: format

This commit is contained in:
Nathan Walker
2020-07-05 14:57:06 -07:00
parent 8f2900ad0b
commit da3c0b973d
379 changed files with 71587 additions and 54582 deletions

View File

@@ -15,31 +15,38 @@ export * from "../tab-navigation-base/tab-strip-item";
export const traceCategory = "TabView";
export module knownCollections {
export const items = "items";
export const items = "items";
}
@CSSType("Tabs")
export class TabsBase extends TabNavigationBase implements TabsDefinition {
public swipeEnabled: boolean;
public offscreenTabLimit: number;
public tabsPosition: "top" | "bottom";
public iOSTabBarItemsAlignment: IOSTabBarItemsAlignment;
public swipeEnabled: boolean;
public offscreenTabLimit: number;
public tabsPosition: "top" | "bottom";
public iOSTabBarItemsAlignment: IOSTabBarItemsAlignment;
}
// TODO: Add Unit tests
export const swipeEnabledProperty = new Property<TabsBase, boolean>({
name: "swipeEnabled", defaultValue: true, valueConverter: booleanConverter
name: "swipeEnabled",
defaultValue: true,
valueConverter: booleanConverter,
});
swipeEnabledProperty.register(TabsBase);
// TODO: Add Unit tests
// TODO: Coerce to max number of items?
export const offscreenTabLimitProperty = new Property<TabsBase, number>({
name: "offscreenTabLimit", defaultValue: 1, valueConverter: (v) => parseInt(v)
name: "offscreenTabLimit",
defaultValue: 1,
valueConverter: (v) => parseInt(v),
});
offscreenTabLimitProperty.register(TabsBase);
export const tabsPositionProperty = new Property<TabsBase, "top" | "bottom">({ name: "tabsPosition", defaultValue: "top" });
export const tabsPositionProperty = new Property<TabsBase, "top" | "bottom">({
name: "tabsPosition",
defaultValue: "top",
});
tabsPositionProperty.register(TabsBase);
export type IOSTabBarItemsAlignment = "leading" | "justified" | "center" | "centerSelected";