Highcharts Dashboards
    Preparing search index...

    Class that represents a HTML component.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    captionElement?: HTMLElement

    The HTML element where the caption is.

    connectorHandlers: ConnectorHandler[] = []

    The connector handlers for the component. They are used to handle the connector options and data tables.

    dimensions: { height: number | null; width: number | null }

    Size of the component (width and height).

    editableOptions: EditableOptions

    An array of options marked as editable by the UI.

    id: string

    Sets an ID for the component's div.

    isActive?: boolean

    Whether the component state is active.

    options: Options

    HTML component's options.

    syncHandlers?: OptionsRecord

    The sync handlers for the component.

    defaultOptions: Partial<Options> & DeepPartial<Options> = ...

    Default options of the HTML component.

    predefinedSyncConfig: PredefinedSyncConfig = HTMLSyncs

    Predefined sync config for HTML component.

    Methods

    • Destroys the component.

      Returns void

    • Returns the data table connected to the component by the connectorId and dataTableKey. If both args are undefined, the first data table is returned.

      Parameters

      • OptionalconnectorId: string

        The id of the connector.

      • OptionaldataTableKey: string

        The key of the data table within the connector.

      Returns DataTable | undefined

      The data table, or undefined if no matching handler is found.

    • Get the value of the editable option by property path. Parse the elements if the HTML options is not set.

      Parameters

      • OptionalpropertyPath: string[]

        The property path of the option.

      Returns string | number | boolean | undefined

    • Resize the component

      Parameters

      • Optionalwidth: string | number | null

        The width to set the component to. Can be pixels, a percentage string or null. Null will unset the style

      • Optionalheight: string | number | null

        The height to set the component to. Can be pixels, a percentage string or null. Null will unset the style.

      Returns this

    • It's a temporary alternative for the resize method. It sets the strict pixel height for the component so that the content can be distributed in the right way, without looping the resizers in the content and container.

      Parameters

      • Optionalwidth: string | number | null

        The width to set the component to.

      • Optionalheight: string | number | null

        The height to set the component to.

      Returns void

    • Adjusts size of component to parent's cell size when animation is done.

      Parameters

      • element: HTMLElement

        HTML element that is resized.

      Returns void

    • Handles updating via options.

      Parameters

      • options: Partial<Options>

        The options to apply.

      • shouldRerender: boolean = true

      Returns Promise<void>