title: "DefineDashboardExtension" isDefaultIndex: false
import MemberInfo from '@site/src/components/MemberInfo'; import GenerationInfo from '@site/src/components/GenerationInfo'; import MemberDescription from '@site/src/components/MemberDescription';
The main entry point for extensions to the React-based dashboard. Every dashboard extension
must contain a call to this function, usually in the entry point file that is referenced by
the dashboard property of the plugin decorator.
Every type of customisation of the dashboard can be defined here, including:
Example
defineDashboardExtension({
navSections: [],
routes: [],
pageBlocks: [],
actionBarItems: [],
});
function defineDashboardExtension(extension: DashboardExtension): void
Parameters
DashboardExtension`} />
This is the main interface for defining all extensions to the dashboard.
Every type of customisation of the dashboard can be defined here, including:
Login page customisation
interface DashboardExtension {
routes?: DashboardRouteDefinition[];
navSections?: DashboardNavSectionDefinition[];
pageBlocks?: DashboardPageBlockDefinition[];
actionBarItems?: DashboardActionBarItem[];
alerts?: DashboardAlertDefinition[];
widgets?: DashboardWidgetDefinition[];
customFormComponents?: DashboardCustomFormComponents;
dataTables?: DashboardDataTableExtensionDefinition[];
detailForms?: DashboardDetailFormExtensionDefinition[];
login?: DashboardLoginExtensions;
historyEntries?: DashboardHistoryEntryComponent[];
}