mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
* chore: add guard for ios * feat(bottom-nav): adding new properties * feat(tabs): new property implementation * feat: new feature implementation in android Implemented selectedItemColor and unSelectedItemColor properties on TabStrip * chore: added some comments * chore: change method return type * fix: setting icon color * fix: rendering mode setting * chore: rename variable * chore: fixed a typo * chore: updated log in build gradle * fix: item color setting in android * fix: tab styling when no css aplied * chore: private methods renamed * tests: added selected-item test pages * chore: renamed test pages * chore: move css-tree package to the right place * tests: added new ui tests * fix: use renamed function * fix: set item color * tests: aded automationText attribute * tests: trying to fix the tests Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com>
33 lines
1.7 KiB
TypeScript
33 lines
1.7 KiB
TypeScript
import { EventData } from "tns-core-modules/data/observable";
|
|
import { SubMainPageViewModel } from "../sub-main-page-view-model";
|
|
import { WrapLayout } from "tns-core-modules/ui/layouts/wrap-layout";
|
|
import { Page } from "tns-core-modules/ui/page";
|
|
|
|
export function pageLoaded(args: EventData) {
|
|
const page = <Page>args.object;
|
|
const wrapLayout = <WrapLayout>page.getViewById("wrapLayoutWithExamples");
|
|
page.bindingContext = new SubMainPageViewModel(wrapLayout, loadExamples());
|
|
}
|
|
|
|
export function loadExamples() {
|
|
const examples = new Map<string, string>();
|
|
examples.set("bottom-navigation", "bottom-navigation/bottom-navigation-page");
|
|
examples.set("issue-5470", "bottom-navigation/issue-5470-page");
|
|
examples.set("background-color", "bottom-navigation/background-color-page");
|
|
examples.set("color", "bottom-navigation/color-page");
|
|
examples.set("events", "bottom-navigation/events-page");
|
|
examples.set("font", "bottom-navigation/font-page");
|
|
examples.set("text-transform", "bottom-navigation/text-transform-page");
|
|
examples.set("icon-title-placement", "bottom-navigation/icon-title-placement-page");
|
|
examples.set("icon-change", "bottom-navigation/icon-change-page");
|
|
examples.set("binding", "bottom-navigation/binding-page");
|
|
examples.set("font-icons", "bottom-navigation/font-icons-page");
|
|
examples.set("fancy-fonts", "bottom-navigation/fancy-fonts-page");
|
|
examples.set("css-text-transform", "bottom-navigation/bottom-navigation-css-page");
|
|
examples.set("custom-tabstrip", "bottom-navigation/custom-tabstrip-page");
|
|
examples.set("reselect", "bottom-navigation/reselect-page");
|
|
examples.set("item-color", "bottom-navigation/item-color-page");
|
|
|
|
return examples;
|
|
}
|