API to control the Toc component imperatively
Returns the toc item for the given id.
id
Returns the item that corresponds with the layerId.
layerId
Returns the list of all registered items in the Toc.
API to control the Toc component imperatively