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

Function applyNextStyle

apps/ui/src/css/background-shorthand-page.ts:40–49  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

38}
39
40function applyNextStyle(args) {
41 let page = <pages.Page>args.object.page;
42 let btn = <button.Button>args.object;
43 let gridElement = <GridLayout>page.getViewById('Container');
44
45 btn.text = tests[testIndex].name;
46 gridElement.background = tests[testIndex].background;
47
48 testIndex = testIndex < tests.length - 1 ? ++testIndex : 0;
49}

Callers 2

onLoadedFunction · 0.70
onButtonTapFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected