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

Function createTabItems

apps/automated/src/ui/page/page-tests-common.ts:505–519  ·  view source on GitHub ↗
(count: number)

Source from the content-addressed store, hash-verified

503 };
504
505 const createTabItems = function (count: number) {
506 var items = new Array<TabViewItem>();
507
508 for (var i = 0; i < count; i++) {
509 var label = new Label();
510 label.text = 'Tab ' + i;
511 var tabEntry = new TabViewItem();
512 tabEntry.title = 'Tab ' + i;
513 tabEntry.view = label;
514
515 items.push(tabEntry);
516 }
517
518 return items;
519 };
520
521 const modalPageShownModallyEventHandler = function (args: ShownModallyData) {
522 const page = <Page>args.object;

Callers 2

masterPageFactoryFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected