feat(core): box-shadow support (#9161)

This commit is contained in:
Nathan Walker
2021-01-29 11:24:11 -08:00
parent 6cc130fa6f
commit 67e2fe42b7
14 changed files with 364 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
import { Observable, Frame } from '@nativescript/core';
import { Observable, Frame, StackLayout } from '@nativescript/core';
export class HelloWorldModel extends Observable {
private _counter: number;
@@ -23,6 +23,15 @@ export class HelloWorldModel extends Observable {
}
}
toggleAnimation(args) {
const layout = args.object as StackLayout;
if (!layout.className) {
layout.className = 'sample-animation';
} else {
layout.className = undefined;
}
}
onTap() {
this._counter--;
this.updateMessage();