Docs
Page TreePage Tree
The structure of page tree.
Page tree is a tree that includes all the pages, separator and folders.
It will be sent to the client and required for sidebar and breadcrumb. Hence, you shouldn't store any sensitive or large data in page tree.
Note: Unserializable data such as functions can't be passed to page tree.
Conventions
Items can be either a separator, page or folder.
Page
It contains a url, an optional icon and display name.
Folder
It contains a display name, an optional icon, a list of items and an optional index page
Separator
It only contains a display name.
Icons
Icon is a ReactElement
, supported by pages and folders.
Example
Type Bindings
You can import the type from server package.
Last updated on