Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Options

Defines possible options for a string padding operation.

Hierarchy

  • Options

Index

Properties

Optional direction

direction: Direction

The position of the padded characters relative to the original string. Defaults to Direction.Right.

Optional paddingChar

paddingChar: string

The padding character. Defaults to ' '.

totalWidth

totalWidth: number

The number of characters in the resulting string, equal to the number of original characters plus any additional padding characters.

Generated using TypeDoc