AmpComponent

AmpComponent class

Base class to representation amp components.

Constructors

NameDescription
AmpComponent

Methods

NameDescription
get_AttributesAMP provides a set of common attributes that are extended to many AMP components.
get_FallbackA fallback is a convention that allows the element to communicate to the reader that the browser does not support the element.
get_PlaceholderThe element marked with the placeholder attribute acts as a placeholder for the parent AMP element. If specified, a placeholder element must be a direct child of the AMP element.
get_RequiredScriptRequired script that muct be added to head section.
set_FallbackA fallback is a convention that allows the element to communicate to the reader that the browser does not support the element.
set_PlaceholderThe element marked with the placeholder attribute acts as a placeholder for the parent AMP element. If specified, a placeholder element must be a direct child of the AMP element.
ToAmpHtmlRepresents amp html version of component.
ToHtmlRepresents html version of component.