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

Method _getDataItem

packages/core/ui/repeater/index.ts:164–168  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

162 }
163
164 private _getDataItem(index: number): any {
165 const items = <ItemsSource>this.items;
166
167 return items.getItem ? items.getItem(index) : this.items[index];
168 }
169
170 get _childrenCount(): number {
171 return this.itemsLayout ? 1 : 0;

Callers 3

refreshMethod · 0.95
_getItemTemplateFunction · 0.80
_prepareItemFunction · 0.80

Calls 1

getItemMethod · 0.65

Tested by

no test coverage detected