MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / buttonTap

Function buttonTap

apps/ui/src/css/elevation-page.ts:11–19  ·  view source on GitHub ↗
(args: EventData)

Source from the content-addressed store, hash-verified

9let currentState = 0;
10
11export function buttonTap(args: EventData) {
12 let btn: Button = args.object as Button;
13 currentState++;
14 if (currentState >= states.length) {
15 currentState = 0;
16 }
17 btn.className = states[currentState].class;
18 btn.text = states[currentState].text;
19}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected