mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat(core): box-shadow support (#9161)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user