kaffy icon indicating copy to clipboard operation
kaffy copied to clipboard

How can I make Main Dashboard widgets?

Open ByeongUkChoi opened this issue 9 months ago • 2 comments

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?

ByeongUkChoi avatar Nov 11 '23 05:11 ByeongUkChoi

Same question here

geeksilva97 avatar Apr 11 '24 01:04 geeksilva97

I'm trying some stuff here https://github.com/geeksilva97/kaffy/pull/1

geeksilva97 avatar Apr 13 '24 13:04 geeksilva97