Files
Hristo Deshev 629eb6e683 Use relative imports in tns-core-modules.
Use tns-core-modules/* imports in outside code (apps, tests, etc)
2017-03-13 14:37:59 +02:00

14 lines
430 B
TypeScript

import { View, EventData } from "tns-core-modules/ui/core/view";
export function setClass(args: EventData) {
const btn = (<View & { tag: any }>args.object);
const img = btn.page.getViewById<View>("img");
img.className = btn.tag;
}
export function setImg2Class(args: EventData) {
const btn = (<View & { tag: any }>args.object);
const img2 = btn.page.getViewById<View>("img2");
img2.className = btn.tag;
}