Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I make Main Dashboard widgets? #302

Open
ByeongUkChoi opened this issue Nov 11, 2023 · 2 comments
Open

How can I make Main Dashboard widgets? #302

ByeongUkChoi opened this issue Nov 11, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@ByeongUkChoi
Copy link
Contributor

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 ByeongUkChoi added the enhancement New feature or request label Nov 11, 2023
@geeksilva97
Copy link

Same question here

@geeksilva97
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants