Files
firecms/website/docs/api/functions/getnavigationfrom.md
2021-06-06 13:36:47 +02:00

980 B

id, title, sidebar_label, sidebar_position, custom_edit_url
id title sidebar_label sidebar_position custom_edit_url
getnavigationfrom Function: getNavigationFrom getNavigationFrom 0 null

getNavigationFrom(__namedParameters): Promise<NavigationEntry[]>

Use this function to retrieve an array of navigation entries (resolved collection or entity) for the given path. You need to pass the app context that you receive in different callbacks, such as the save hooks.

It will take into account the navigation provided at the CMSApp level, as well as a schemaResolver if provided.

Parameters

Name Type
__namedParameters Object
__namedParameters.context CMSAppContext
__namedParameters.path string

Returns

Promise<NavigationEntry[]>

Defined in

hooks/useNavigationFrom.tsx:34