MCPcopy Create free account
hub / github.com/ampproject/amphtml / pauseLayout

Method pauseLayout

extensions/amp-base-carousel/0.1/carousel.js:426–429  ·  view source on GitHub ↗

* Pauses the layout temporarily. This can be resumed by calling * `resumseLayout`.

()

Source from the content-addressed store, hash-verified

424 * `resumseLayout`.
425 */
426 pauseLayout() {
427 this.layoutPaused_ = true;
428 this.autoAdvance_.pause();
429 }
430
431 /**
432 * Resumes layout of the component. This will update the UI to the correct

Callers 3

pauseCallbackMethod · 0.80
pauseCallbackMethod · 0.80
pauseCallbackMethod · 0.80

Calls 1

pauseMethod · 0.45

Tested by

no test coverage detected