useCollapsedGroups
Ce contenu n’est pas encore disponible dans votre langue.
@firecms/core / useCollapsedGroups
Function: useCollapsedGroups()
Section titled “Function: useCollapsedGroups()”useCollapsedGroups(
groupNames):object
Defined in: hooks/useCollapsedGroups.ts:8
Custom hook for managing collapsed/expanded state of navigation groups with localStorage persistence. Automatically cleans up stale group entries when groups are removed from the navigation.
Parameters
Section titled “Parameters”groupNames
Section titled “groupNames”string[]
Returns
Section titled “Returns”object
isGroupCollapsed()
Section titled “isGroupCollapsed()”isGroupCollapsed: (
name) =>boolean
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean
toggleGroupCollapsed()
Section titled “toggleGroupCollapsed()”toggleGroupCollapsed: (
name) =>void
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void