MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / setPages

Method setPages

core/src/components/nav/nav.tsx:333–353  ·  view source on GitHub ↗
(
    views: NavComponent[] | NavComponentWithProps[],
    opts?: NavOptions | null,
    done?: TransitionDoneFn
  )

Source from the content-addressed store, hash-verified

331 */
332 @Method()
333 setPages(
334 views: NavComponent[] | NavComponentWithProps[],
335 opts?: NavOptions | null,
336 done?: TransitionDoneFn
337 ): Promise<boolean> {
338 opts ??= {};
339 // if animation wasn't set to true then default it to NOT animate
340 if (opts.animated !== true) {
341 opts.animated = false;
342 }
343 return this.queueTrns(
344 {
345 insertStart: 0,
346 insertViews: views,
347 removeStart: 0,
348 removeCount: -1,
349 opts,
350 },
351 done
352 );
353 }
354
355 /**
356 * Called by the router to update the view.

Callers 2

setRootMethod · 0.95

Calls 1

queueTrnsMethod · 0.95

Tested by

no test coverage detected