BottomBarItemModel
BottomBarItemModel = {
icon?:string;kind:"resource";label:string;resource:string; } | {icon?:string;kind:"page";label:string;page:string; } | {href:string;icon?:string;kind:"link";label:string; } | {kind:"search";label?:string; }
Defined in: packages/schema/src/model.ts:1672
A tab of a bottom bar on phones: icon above an explicit label.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ icon?: string; kind: "resource"; label: string; resource: string; }
optionalicon?:string
The tab’s icon; the resource’s sidebar icon when omitted.
kind:
"resource"
Opens a resource’s list.
label:
string
The tab’s label.
resource
Section titled “resource”resource:
string
The resource.
Type Literal
Section titled “Type Literal”{ icon?: string; kind: "page"; label: string; page: string; }
optionalicon?:string
The tab’s icon; the page’s own when omitted.
kind:
"page"
Opens a composed page.
label:
string
The tab’s label.
page:
string
The page.
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 tab’s icon.
kind:
"link"
Opens an address outside the admin in a new tab.
label:
string
The tab’s label.
Type Literal
Section titled “Type Literal”{ kind: "search"; label?: string; }
kind:
"search"
Opens the app’s search, which then leaves the top bar. On iOS, with the native tab bar, it is the system’s own search beside the tabs rather than one of them.
label?
Section titled “label?”
optionallabel?:string
The tab’s label; “Search” in the app’s language when omitted.