mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 05:18:39 +08:00
chore: cleanup background handling
This commit is contained in:

committed by
Nathan Walker

parent
21da31562c
commit
7c60735d14
@ -12,7 +12,7 @@ const possibleValues = [
|
||||
];
|
||||
let currentIndex = 0;
|
||||
|
||||
export function butonTap(args: EventData) {
|
||||
export function buttonTap(args: EventData) {
|
||||
let page = (<TextBase>args.object).page;
|
||||
let lbl = <TextBase>page.getViewById('Label');
|
||||
let btn = <TextBase>page.getViewById('Button');
|
||||
@ -20,7 +20,7 @@ export function butonTap(args: EventData) {
|
||||
let textView = <TextBase>page.getViewById('TextView');
|
||||
|
||||
let newIndex = currentIndex++ % possibleValues.length;
|
||||
let newValue = <any>possibleValues[newIndex];
|
||||
let newValue = possibleValues[newIndex];
|
||||
|
||||
lbl.textShadow = newValue;
|
||||
btn.textShadow = newValue;
|
||||
|
@ -1,6 +1,6 @@
|
||||
<Page>
|
||||
<StackLayout>
|
||||
<Button id="Change" automationText="Change" text="Change" tap="butonTap" />
|
||||
<Button id="Change" automationText="Change" text="Change" tap="buttonTap" />
|
||||
<Label id="Label" automationText="Label" text="Label" />
|
||||
<Button id="Button" automationText="Button" text="Button" />
|
||||
<TextField id="TextField" automationText="TextField" text="TextField" />
|
||||
|
Reference in New Issue
Block a user