Files
NativeScript/e2e/ui-tests-app/app/animation/layout-stack-height-page.ts
2019-06-20 15:58:36 +03:00

13 lines
334 B
TypeScript

import * as view from "tns-core-modules/ui/core/view";
export function tapLabel(args) {
const clicked: view.View = args.object;
const graffiti = clicked as any;
clicked.animate({
height: graffiti.toggle ? 64 : 128,
duration: 200,
curve: "easeOut"
});
graffiti.toggle = !graffiti.toggle;
}