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

Method toggleFallback

src/base-element.js:794–796  ·  view source on GitHub ↗

* Hides or shows the fallback, if available. This function must only * be called inside a mutate context. * @param {boolean} state * @public @final

(state)

Source from the content-addressed store, hash-verified

792 * @public @final
793 */
794 toggleFallback(state) {
795 this.element.toggleFallback(state);
796 }
797
798 /**
799 * Hides or shows the loading indicator.

Callers 5

handleOnLoadMethod · 0.45
handleOnErrorMethod · 0.45
hideFallbackImg_Method · 0.45
onImgLoadingError_Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected