Open Pioneer Trails Packages
    Preparing search index...

    Interface TocItem

    Represents an item in the toc.

    Currently items register themselves in the model when they are mounted and remove themselves when they are unmounted.

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

    Properties

    htmlElement: undefined | HTMLElement

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

    id: string

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

    isExpanded: boolean

    true if list item is expanded.

    layerId?: string

    Identifier of the layer that corresponds with the list item. May be undefined if the item does not represent a layer.

    Methods