import { EventData , Page , Label } from '@nativescript/core' ; const setLabelTextAndLog = ( args , text ) => { const page = < Page > args . object . page ; const label = < Label > page . getViewById ( 'resultLabel' ) ; label . set ( 'text' , text ) ; console . log ( 'on button tap' ) ; } ; export function onTap ( args ) { setLabelTextAndLog ( args , 'onButtonTapResult' ) ; } export function clearResult ( args ) { setLabelTextAndLog ( args , 'none' ) ; } export function onOuterWrapLayoutTap ( args ) { setLabelTextAndLog ( args , 'onOuterWrapLayoutTapResult' ) ; } export function onStackLayoutThrowTap ( args ) { setLabelTextAndLog ( args , 'Should not tap layout with IsPassThroughParentEnabled=true' ) ; } export function onUserInteractionDisabledTap ( args ) { setLabelTextAndLog ( args , 'Should not tap button with IsUserInteractionEnabled=false' ) ; } export function onDisabledThrowTap ( args ) { setLabelTextAndLog ( args , 'Should not tap button with IsEnabled=false' ) ; }