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

Method collapse

src/base-element.js:847–849  ·  view source on GitHub ↗

* Collapses the element, setting it to `display: none`, and notifies its * owner (if there is one) through collapsedCallback that the element * is no longer visible.

()

Source from the content-addressed store, hash-verified

845 * is no longer visible.
846 */
847 collapse() {
848 Services.mutatorForDoc(this.getAmpDoc()).collapseElement(this.element);
849 }
850
851 /**
852 * Return a promise that request the runtime to collapse one element

Callers 11

applyNoContentUIMethod · 0.45
initMethod · 0.45
Basic.jsFile · 0.45
ensureInitialized_Method · 0.45
layoutCallbackMethod · 0.45
exit_Method · 0.45
collapseAndRescheduleMethod · 0.45
caretFunction · 0.45
ieFunction · 0.45
DaFunction · 0.45

Calls 2

getAmpDocMethod · 0.95
collapseElementMethod · 0.45

Tested by

no test coverage detected