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

Method previewAllowed

src/base-element.js:160–162  ·  view source on GitHub ↗

* Subclasses can override this method to opt-in into being called to * render when document itself is in preview mode. * * The return value of this function is used to determine whether or not the * element will be built _and_ laid out during preview mode. Therefore, any * changes to

(element)

Source from the content-addressed store, hash-verified

158 * @return {boolean}
159 */
160 static previewAllowed(element) {
161 return this.prerenderAllowed(element);
162 }
163
164 /**
165 * Subclasses can override this method to indicate that an element can load

Callers 4

test-amp-img.jsFile · 0.45
test-amp-img-v1.jsFile · 0.45

Calls 1

prerenderAllowedMethod · 0.95

Tested by

no test coverage detected