Class BRTag

HTMLBRElement Tag

Hierarchy

Methods

  • Builds the resulting HTML by appending lines to the output array.

    Parameters

    • output: string[]

      A string array on which to append the output

    Returns void

  • Recursively constructs data attributes into key/value strings. Nested keys are joined with dashes.

    Parameters

    • builder: string[]

      An array of strings on which to append the attributes

    • data: DataAttrs

      The data attributes object

    • prefix: string = 'data-'

      A prefix for each attribute name

    Returns void

  • Appends the children

    Parameters

    • output: string[]

      a string array on which to append the output

    Returns void

  • Assigns a single class to the element.

    Returns

    this

    Parameters

    • Rest ...s: string[]

      A single class name

    Returns BRTag

  • Returns

    an actual ElementType generated for this tag, in the current document.

    Returns HTMLBRElement

  • Apply an inline style using the +style+ attribute.

    Returns

    this

    Parameters

    • s: Partial<CSSStyleDeclaration>

      An inline style to apply to the element

    Returns BRTag

  • Assigns one or more classes and/or an id to the element.

    Returns

    this

    Parameters

    • selector: string

    Returns BRTag

  • Set the inner text content of the element.

    Returns

    this

    Parameters

    • s: string

      The inner text of the element

    Returns BRTag

Generated using TypeDoc