mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
13 lines
285 B
TypeScript
13 lines
285 B
TypeScript
import { View } from '@nativescript/core';
|
|
|
|
export function tapLabel(args) {
|
|
const clicked: View = args.object;
|
|
const graffiti = clicked as any;
|
|
clicked.animate({
|
|
height: graffiti.toggle ? 64 : 128,
|
|
duration: 200,
|
|
curve: 'easeOut',
|
|
});
|
|
graffiti.toggle = !graffiti.toggle;
|
|
}
|