chore: cleanup background handling

This commit is contained in:
Igor Randjelovic
2021-03-16 17:37:57 +01:00
committed by Nathan Walker
parent 21da31562c
commit 7c60735d14
21 changed files with 174 additions and 51 deletions

View File

@ -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;

View File

@ -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" />