umbraco-dashboard by umbraco/umbraco-cms-backoffice-skills
npx skills add https://github.com/umbraco/umbraco-cms-backoffice-skills --skill umbraco-dashboard仪表板是 Umbraco 后台界面中可自定义的组件,用于显示信息和功能。当树形结构中没有选中任何项目时,它会显示选中项目的“编辑器”或默认的区域信息。仪表板使用条件来控制其在后台界面中出现的位置和时机。
在实施前请务必获取最新文档:
Umbraco 源代码中包含一个可运行的示例:
位置 : /Umbraco-CMS/src/Umbraco.Web.UI.Client/examples/dashboard-with-property-dataset/
此示例演示了一个使用属性数据集进行数据绑定的仪表板。请研究此示例以了解生产模式。
如果在实施仪表板时需要解释这些基础概念,请参考以下技能:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
Umbraco 元素 / UmbElementMixin : 当实施仪表板元素时,解释 UmbElementMixin、UmbLitElement 或基类模式
umbraco-umbraco-element上下文 API : 当实施上下文消费(consumeContext)、提供上下文或访问服务(如 UMB_NOTIFICATION_CONTEXT)时
umbraco-context-api本地化 : 当实施翻译、使用 localize.term() 或添加多语言支持时
umbraco-localization状态管理 : 当实施响应式状态、使用 observables、UmbState 或 @state() 装饰器时
umbraco-state-management条件 : 当实施可见性控制、区域限制或条件渲染时
umbraco-conditions{
"type": "dashboard",
"alias": "my.dashboard",
"name": "My Dashboard",
"element": "/App_Plugins/MyDashboard/dashboard.js",
"meta": {
"label": "My Dashboard",
"pathname": "my-dashboard"
},
"conditions": [
{
"alias": "Umb.Condition.SectionAlias",
"match": "Umb.Section.Content"
}
]
}
import { LitElement, html, css } from '@umbraco-cms/backoffice/external/lit';
import { UmbElementMixin } from '@umbraco-cms/backoffice/element-api';
export default class MyDashboardElement extends UmbElementMixin(LitElement) {
render() {
return html`
<uui-box headline="My Dashboard">
<p>Dashboard content goes here</p>
</uui-box>
`;
}
static styles = css`
:host {
display: block;
padding: var(--uui-size-space-4);
}
`;
}
customElements.define('my-dashboard', MyDashboardElement);
就是这样!请务必获取最新文档,保持示例简洁,并生成完整可运行的代码。
每周安装数
82
代码仓库
GitHub 星标数
17
首次出现
2026年2月4日
安全审计
安装于
github-copilot59
opencode28
codex28
cursor28
gemini-cli27
amp25
Dashboards are customizable components that appear in Umbraco's backoffice sections to display information and functionality. They show an 'editor' for the selected item in the tree or default section information when no item is selected. Dashboards use conditions to control where and when they appear in the backoffice.
Always fetch the latest docs before implementing:
The Umbraco source includes a working example:
Location : /Umbraco-CMS/src/Umbraco.Web.UI.Client/examples/dashboard-with-property-dataset/
This example demonstrates a dashboard that uses property datasets for data binding. Study this for production patterns.
If you need to explain these foundational concepts when implementing dashboards, reference these skills:
Umbraco Element / UmbElementMixin : When implementing dashboard elements, explaining UmbElementMixin, UmbLitElement, or base class patterns
umbraco-umbraco-elementContext API : When implementing context consumption (consumeContext), providing contexts, or accessing services like UMB_NOTIFICATION_CONTEXT
umbraco-context-apiLocalization : When implementing translations, using localize.term(), or adding multi-language support
umbraco-localizationState Management : When implementing reactive state, using observables, UmbState, or @state() decorator
umbraco-state-managementConditions : When implementing visibility controls, section restrictions, or conditional rendering
{
"type": "dashboard",
"alias": "my.dashboard",
"name": "My Dashboard",
"element": "/App_Plugins/MyDashboard/dashboard.js",
"meta": {
"label": "My Dashboard",
"pathname": "my-dashboard"
},
"conditions": [
{
"alias": "Umb.Condition.SectionAlias",
"match": "Umb.Section.Content"
}
]
}
import { LitElement, html, css } from '@umbraco-cms/backoffice/external/lit';
import { UmbElementMixin } from '@umbraco-cms/backoffice/element-api';
export default class MyDashboardElement extends UmbElementMixin(LitElement) {
render() {
return html`
<uui-box headline="My Dashboard">
<p>Dashboard content goes here</p>
</uui-box>
`;
}
static styles = css`
:host {
display: block;
padding: var(--uui-size-space-4);
}
`;
}
customElements.define('my-dashboard', MyDashboardElement);
That's it! Always fetch fresh docs, keep examples minimal, generate complete working code.
Weekly Installs
82
Repository
GitHub Stars
17
First Seen
Feb 4, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
github-copilot59
opencode28
codex28
cursor28
gemini-cli27
amp25
2025 Node.js 最佳实践指南:框架选择、架构原则与错误处理
5,100 周安装
umbraco-conditions