MCPcopy Index your code
hub / github.com/ampproject/amphtml / setAsContainer

Method setAsContainer

src/base-element.js:473–475  ·  view source on GitHub ↗

* Set itself as a container element that can be monitored by the scheduler * for auto-mounting. Scheduler is used for R1 elements. A container is * usually a top-level scrollable overlay such as a lightbox or a sidebar. * The main scheduler (`IntersectionObserver`) cannot properly handle el

(opt_scroller)

Source from the content-addressed store, hash-verified

471 * monitored. Typically a scrollable element.
472 */
473 setAsContainer(opt_scroller) {
474 this.element.setAsContainerInternal(opt_scroller);
475 }
476
477 /**
478 * Removes itself as a container. See `setAsContainer`.

Callers 7

afterOpenMethod · 0.80
finalizeOpen_Method · 0.80
afterOpenMethod · 0.80
updateForOpened_Method · 0.80
afterOpenMethod · 0.80
updateForOpened_Method · 0.80

Calls 1

Tested by

no test coverage detected