Open Pioneer Trails Packages
    Preparing search index...

    Interface TocApi

    API to control the Toc component imperatively

    interface TocApi {
        getItemById(id: string): undefined | TocItem;
        getItemByLayerId(layerId: string): undefined | TocItem;
        getItems(): TocItem[];
    }
    Index

    Methods

    • Returns the item that corresponds with the layerId.

      Parameters

      • layerId: string

      Returns undefined | TocItem