Open Pioneer Trails Packages
    Preparing search index...

    Interface TocApi

    API to control the Toc component imperatively

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

    Methods

    • Returns the item that corresponds with the layerId.

      Parameters

      • layerId: string

      Returns TocItem | undefined