Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Thickness

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Thickness(top: number, right: number, bottom: number, left: number): Thickness
  • Creates an instance of a Thickness object, with top, right, bottom and left

    Parameters

    • top: number
    • right: number
    • bottom: number
    • left: number

    Returns Thickness

Properties

Readonly bottom

bottom: number

Gets or sets the left amount

Readonly left

left: number

Gets or sets the left amount

Readonly right

right: number

Gets or sets the left amount

Readonly top

top: number

Gets or sets the left amount

Methods

equals

  • Parameters

    Returns boolean

Static fromNumber

  • Creates a Thickness (margin or padding) from a single value, e.g. 10, would return a thickness with top, right, bottom left = 10

    Parameters

    • value: number

    Returns Thickness

Static fromString

  • Creates a Thickness (margin or padding) from string, e.g. "25 50 75 100". Order is top, right, bottom left. Same as in Css

    Parameters

    • str: string

    Returns Thickness

Generated using TypeDoc