UserMenuItemModel
UserMenuItemModel = {
icon?:string;kind:"resource";label?:string;resource:string; } | {icon?:string;kind:"page";label?:string;page:string; } | {href:string;icon?:string;kind:"link";label:string; }
Defined in: packages/schema/src/model.ts:1038
An entry in the menu under the signed-in user, at the bottom of the sidebar.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ icon?: string; kind: "resource"; label?: string; resource: string; }
optionalicon?:string
The entry’s icon; the resource’s sidebar icon when omitted.
kind:
"resource"
Opens a resource’s list.
label?
Section titled “label?”
optionallabel?:string
The entry’s label; the view’s plural name when omitted.
resource
Section titled “resource”resource:
string
The resource, which leaves the sidebar.
Type Literal
Section titled “Type Literal”{ icon?: string; kind: "page"; label?: string; page: string; }
optionalicon?:string
The entry’s icon.
kind:
"page"
Opens a composed page.
label?
Section titled “label?”
optionallabel?:string
The entry’s label; the page’s title when omitted.
page:
string
The page, which leaves the sidebar.
Type Literal
Section titled “Type Literal”{ href: string; icon?: string; kind: "link"; label: string; }
href:
string
The address: https:, http: or mailto:.
optionalicon?:string
The entry’s icon; external-link when omitted.
kind:
"link"
Opens an address outside the admin in a new tab.
label:
string
The entry’s label.