Files
Umbraco-CMS/src/Umbraco.Web.UI.Client/libs/extensions-registry/dashboard.models.ts
2023-04-12 14:43:27 +02:00

40 lines
922 B
TypeScript

import type { ManifestElement, ManifestWithConditions } from './models';
export interface ManifestDashboard extends ManifestElement, ManifestWithConditions<ConditionsDashboard> {
type: 'dashboard';
meta: MetaDashboard;
}
export interface MetaDashboard {
/**
* This is the URL path for the dashboard which is used for navigating or deep linking directly to the dashboard
* https://yoursite.com/section/settings/dashboard/my-dashboard-path
*
* @example my-dashboard-path
* @examples [
* "my-dashboard-path"
* ]
*/
pathname: string;
/**
* The displayed name (label) for the tab of the dashboard
*/
label?: string;
}
export interface ConditionsDashboard {
/**
* An array of section aliases that the dashboard should be available in
*
* @uniqueItems true
* @minItems 1
* @items.examples [
* "Umb.Section.Content",
* "Umb.Section.Settings"
* ]
*
*/
sections: string[];
}