Interface HTMLValueWriter

interface HTMLValueWriter {
    addAttribute: ((name, value) => void);
    addSharedStyle: ((name, styles) => void);
    addStyle: ((name, value) => void);
    setHTMLText: ((value) => void);
    setPlainText: ((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

setHTMLText: ((value) => void)

Note - If this is not set the the plain text is used. Generally the HTML text will be formatted

Type declaration

    • (value): void
    • Parameters

      • value: string

      Returns void

setPlainText: ((value) => void)

Type declaration

    • (value): void
    • Parameters

      • value: string

      Returns void