AmpFitText

AmpFitText class

Expands or shrinks its font size to fit the content within the space given to it.

The AmpFitText type exposes the following members:

Constructors

NameDescription
AmpFitText(value)Initializes a new instance of the AmpFitText class

Properties

NameDescription
required_scriptRequired script that muct be added to head section.
attributesAMP provides a set of common attributes that are extended to many AMP components.
fallbackA fallback is a convention that allows the element to communicate to the reader that the browser does not support the element.
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.
valueText Value of component.
min_font_sizeSpecifies the minimum font size as an integer that the amp-fit-text can use.
max_font_sizeSpecifies the maximum font size as an integer that the amp-fit-text can use.

Methods

NameDescription
to_amp_html()
to_html()

See Also