aesmail / aesmail/kaffy

How can I make Main Dashboard widgets?

未關閉
#302 2 則留言 0 個 reaction 已指派 1 人 已被 @aesmail 認領 在 GitHub 檢視
enhancement
主要語言
Elixir
星號
1.4k
分支
171
PR 合併指標
30 天內沒有已合併 PR

描述

```elixir
defmodule MyApp.Products.ProductAdmin do
def widgets(_schema, _conn) do
[
%{
type: "tidbit",
title: "Average Reviews",
content: "4.7 / 5.0",
icon: "thumbs-up",
width: 6,
}
]
end
end
```
This way, widgets for individual contexts come out well. However, widgets for individual contexts are also visible on the main dashboard. How do I declare a widget only on a dashboard that is different from the widget in the main individual context?

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。