MCPcopy
hub / github.com/ampproject/amphtml / togglePlaceholder

Method togglePlaceholder

src/base-element.js:775–777  ·  view source on GitHub ↗

* Hides or shows the placeholder, if available. * @param {boolean} state * @public @final

(state)

Source from the content-addressed store, hash-verified

773 * @public @final
774 */
775 togglePlaceholder(state) {
776 this.element.togglePlaceholder(state);
777 }
778
779 /**
780 * Returns an optional fallback element for this custom element.

Callers 15

firstLayoutCompletedMethod · 0.95
unlayoutMethod · 0.45
handleOnLoadMethod · 0.45
handleOnErrorMethod · 0.45
firstLayoutCompletedMethod · 0.45
onImgLoadingError_Method · 0.45
applyNoContentUIMethod · 0.45
refreshMethod · 0.45
resetMethod · 0.45
showFallback_Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected