AmpAttributes

AmpAttributes class

Represents attributes used by the amp-components.

Constructors

NameDescription
AmpAttributes

Methods

NameDescription
get_HeightHeight of element.
get_HeigthsThe value of this attribute is a sizes expression based on media expressions.
get_IsFallbackDefine that current element is fallback.
get_IsNoloadingThe noloading attribute indicates whether the “loading indicator” should be turned off for this element.
get_IsPlaceHolderThe placeholder attribute indicates that the element marked with this attribute acts as a placeholder for the parent AMP element.
get_LayoutAMP provides a set of layouts that specify how an AMP component behaves in the document layout.
get_MediaThe value of media is a media query. If the query does not match, the element is not rendered and its resources and potentially its child resources will not be fetched. If the browser window changes size or orientation, the media queries are re-evaluated and elements are hidden and shown based on the new results.
get_OnThe on attribute is used to install event handlers on elements.
get_SizesThe value of the AMP sizes attribute is a sizes expression that selects the defined size corresponding to the media query based on the current window size.
get_WidthWidth of element.
set_HeightHeight of element.
set_HeigthsThe value of this attribute is a sizes expression based on media expressions.
set_IsFallbackDefine that current element is fallback.
set_IsNoloadingThe noloading attribute indicates whether the “loading indicator” should be turned off for this element.
set_IsPlaceHolderThe placeholder attribute indicates that the element marked with this attribute acts as a placeholder for the parent AMP element.
set_LayoutAMP provides a set of layouts that specify how an AMP component behaves in the document layout.
set_MediaThe value of media is a media query. If the query does not match, the element is not rendered and its resources and potentially its child resources will not be fetched. If the browser window changes size or orientation, the media queries are re-evaluated and elements are hidden and shown based on the new results.
set_OnThe on attribute is used to install event handlers on elements.
set_SizesThe value of the AMP sizes attribute is a sizes expression that selects the defined size corresponding to the media query based on the current window size.
set_WidthWidth of element.
ToAmpHtmlRepresents amp html version of attributes.
ToHtmlRepresents html version of attributes.