com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class AmpComponent

    • Constructor Detail

      • AmpComponent

        public AmpComponent()
    • Method Detail

      • getRequiredScript

        public abstract String getRequiredScript()

        Required script that muct be added to head section.

      • toAmpHtml

        public abstract String toAmpHtml()

        Represents amp html version of component.

        Returns:
      • toHtml

        public abstract String toHtml()

        Represents html version of component.

        Returns:
      • getAttributes

        public final AmpAttributes getAttributes()

        AMP provides a set of common attributes that are extended to many AMP components.

      • getFallback

        public final String getFallback()

        A fallback is a convention that allows the element to communicate to the reader that the browser does not support the element.

      • setFallback

        public final void setFallback(String value)

        A fallback is a convention that allows the element to communicate to the reader that the browser does not support the element.

      • getPlaceholder

        public final AmpComponent getPlaceholder()

        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.

      • setPlaceholder

        public final void setPlaceholder(AmpComponent value)

        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.