Highcharts Dashboards
    Preparing search index...

    Abstract class of component.

    Hierarchy (View Summary)

    Index

    Constructors

    • Creates a component in the cell.

      Parameters

      • cell: Cell

        Instance of cell, where component is attached.

      • options: Partial<Options>

        The options for the component.

      • Optionalboard: Board

      Returns Component

    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

    The options for the component.

    syncHandlers?: OptionsRecord

    The sync handlers for the component.

    defaultOptions: Partial<Options> = ...

    Default options of the component.

    predefinedSyncConfig: PredefinedSyncConfig = ...

    Predefined sync config for 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.

    • Parameters

      • OptionalpropertyPath: (string | number)[]

      Returns string | number | boolean | undefined

    • Initializes connector handlers for the component.

      Returns Promise<Component>

    • Function fired when component's data source's data is changed.

      Parameters

      • Optionale: EventTypes

      Returns void

    • 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 void

    • 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

    • Adds caption at the bottom of component's container.

      Parameters

      Returns void

    • Adds title at the top of component's container.

      Parameters

      Returns void

    • Handles updating via options.

      Parameters

      • newOptions: Partial<Options>

        The options to apply.

      • shouldRerender: boolean = true

        Set to true if the update should rerender the component.

      Returns Promise<void>