Represents an option.

Implements

Constructors

Properties

Methods

Constructors

  • Creates a new instance of the class.

    Parameters

    • Optionalmode: string

      The mode.

    • Optionaltext: string

      The text.

    • Optionalimage: Image

      The image.

    • Optionalanchor: Anchor

      The Anchor.

    Returns Option

Properties

anchor?: Anchor
image?: Image
mode?: string
text?: string

Methods

  • Converts this Option to JSON.

    Returns {
        [k: string]: unknown;
    }

    JSON object

    • [k: string]: unknown