AmpComponent
Contents
[
Hide
]AmpComponent class
Base class to representation amp components.
Constructors
| Name | Description |
|---|---|
| AmpComponent |
Methods
| Name | Description |
|---|---|
| get_Attributes | AMP provides a set of common attributes that are extended to many AMP components. |
| get_Fallback | A fallback is a convention that allows the element to communicate to the reader that the browser does not support the element. |
| get_Placeholder | The 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_RequiredScript | Required script that muct be added to head section. |
| set_Fallback | A fallback is a convention that allows the element to communicate to the reader that the browser does not support the element. |
| set_Placeholder | The 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. |
| ToAmpHtml | Represents amp html version of component. |
| ToHtml | Represents html version of component. |