MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / onLoaded

Method onLoaded

packages/core/ui/list-view/index.android.ts:219–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

217 }
218
219 public onLoaded() {
220 super.onLoaded();
221 // Without this call itemClick won't be fired... :(
222 this.requestLayout();
223
224 // Setup sticky header if enabled
225 if (this.stickyHeader && this.sectioned && this.stickyHeaderTemplate) {
226 this._setupStickyHeader();
227 }
228
229 // Setup search if enabled and not already set up
230 if (this.showSearch && !this._searchView && this.nativeViewProtected && this.nativeViewProtected.getAdapter()) {
231 this._setupSearchView();
232 }
233 }
234
235 public refresh() {
236 const nativeView = this.nativeViewProtected;

Callers

nothing calls this directly

Calls 3

requestLayoutMethod · 0.95
_setupStickyHeaderMethod · 0.95
_setupSearchViewMethod · 0.95

Tested by

no test coverage detected