mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
20 lines
541 B
TypeScript
20 lines
541 B
TypeScript
import { View } from '@nativescript/core/ui/core/view';
|
|
import { Page } from '@nativescript/core/ui/page';
|
|
|
|
export function loaded(args) {
|
|
const page = <Page>(<View>args.object).page;
|
|
const view = page.getViewById('bottomNavigation');
|
|
(<any>view).textTransform = 'capitalize';
|
|
}
|
|
|
|
export function applyTap(args) {
|
|
const page = <Page>(<View>args.object).page;
|
|
const css = '#bottomNavigation { ' + args.object.tag + ' }';
|
|
page.css = css;
|
|
}
|
|
|
|
export function resetTap(args) {
|
|
const page = <Page>(<View>args.object).page;
|
|
page.css = '';
|
|
}
|