Open Pioneer Trails Packages
    Preparing search index...

    Interface TocItem

    Represents an item in the toc.

    interface TocItem {
        get htmlElement(): HTMLElement | undefined;
        get id(): string;
        get isExpanded(): boolean;
        get layerId(): string | undefined;
        setExpanded(expanded: boolean, options?: ExpandItemOptions): void;
    }
    Index
    • get htmlElement(): HTMLElement | undefined

      DOM element of the underlying LayerItem, undefined if the toc has been disposed or if the item is currently not being rendered.

      Returns HTMLElement | undefined

    • get id(): string

      Identifier of the Toc item. Currently, this is the same as layerId, but that could be changed in the future.

      Returns string

    • get layerId(): string | undefined

      Identifier of the layer that corresponds with the list item.

      May be undefined if the item does not represent a layer.

      Returns string | undefined