Documentation / @zerotal/admin / index / ConsoleContribution
Interface: ConsoleContribution
Defined in: admin/src/plugin.ts:160
A read-and-act page described as data rather than built as a component.
Most packages want the same page: some tables, a few buttons, no bespoke
layout. Describing that instead of rendering it means the contributing package
needs no JSX, no @zerotal/flow dependency and no build configuration —
the panel owns the markup, so every console also looks like the rest of the
admin without trying to.
Reach for PageContribution instead when a page genuinely needs its own component: charts, a custom layout, its own reactive state.
Properties
slug
slug:
string
Defined in: admin/src/plugin.ts:162
Path under the panel root, without leading slash.
title
title:
string
Defined in: admin/src/plugin.ts:163
ability
ability:
string
Defined in: admin/src/plugin.ts:165
Ability required to see the nav entry and open the route.
tabs
tabs:
ConsoleTab[]
Defined in: admin/src/plugin.ts:166
navigationLabel?
optionalnavigationLabel?:string
Defined in: admin/src/plugin.ts:167
navigationIcon?
optionalnavigationIcon?:string
Defined in: admin/src/plugin.ts:168
navigationGroup?
optionalnavigationGroup?:string
Defined in: admin/src/plugin.ts:169
navigationSort?
optionalnavigationSort?:number
Defined in: admin/src/plugin.ts:170
showInNavigation?
optionalshowInNavigation?:boolean
Defined in: admin/src/plugin.ts:171
navigationBadge?
optionalnavigationBadge?: () =>string|number|Promise<string|number|null> |null
Defined in: admin/src/plugin.ts:173
A count pill beside the sidebar entry. Failures are swallowed.
Returns
string | number | Promise<string | number | null> | null
navigationBadgeColor?
optionalnavigationBadgeColor?:BadgeTone
Defined in: admin/src/plugin.ts:175
Tone of the navigation badge.