Skip to content

TextAlign

Inherits: Enum

The horizontal alignment of text within an input box.

Properties

  • CENTER

    Align the text in the center of the container.

  • END

    Align the text on the trailing edge of the container.

  • JUSTIFY

    Stretch lines of text that end with a soft line break to fill the width of the

  • LEFT

    Align the text on the left edge of the container.

  • RIGHT

    Align the text on the right edge of the container.

  • START

    Align the text on the leading edge of the container.

Properties#

CENTER = 'center' #

Align the text in the center of the container.

END = 'end' #

Align the text on the trailing edge of the container.

JUSTIFY = 'justify' #

Stretch lines of text that end with a soft line break to fill the width of the container.

LEFT = 'left' #

Align the text on the left edge of the container.

RIGHT = 'right' #

Align the text on the right edge of the container.

START = 'start' #

Align the text on the leading edge of the container.