interface HTMLWriter {
    addAttribute: ((name, value) => void);
    addSharedStyle: ((name, styles) => void);
    addStyle: ((name, value) => void);
}

Hierarchy (view full)

Properties

addAttribute: ((name, value) => void)

inline indicates if is it stored as a style attribute. By default it is stored in the style tag

Type declaration

    • (name, value): void
    • Parameters

      • name: string
      • value: any

      Returns void

addSharedStyle: ((name, styles) => void)

Adds style to a global style. If the style is already declared this will add to the style. Note - Some implementations may not support this and instead force everything to be inlined.

Type declaration

    • (name, styles): void
    • Parameters

      • name: string
      • styles: Record<string, string>

      Returns void

addStyle: ((name, value) => void)

inline indicates if is it stored as a style attribute. By default it is stored in the style tag

Type declaration

    • (name, value): void
    • Parameters

      • name: string
      • value: string

      Returns void