Closed whitespacecode closed 2 years ago
Would you see this as just being a 2 deep set of breadcrumbs (IE Home -> Your Dashboard
) or using that dashboard as part of a deeper chain, for example if you click something within a card on a dashboard, that dashboard becomes part of the current set of breadcrumbs?
The latter has the same issues that I am currently working on for #8
That is one feature that could be useful. It would be nice to just pass anything as string or value to the Breadcrumb (Card) ? Or maybe an option to not rely on a resource and/or relations. You can't pass $this on a dashboard because now it only accepts a resource.
//Example:
`Breadcrumb($this)->withoutRelations()`
Edit: Okay i just saw you are working on making compatibility with dashboards. Home -> Dashboardname would be great
Okay, this has been implemented as Home -> Dashboardname
in v1.1.0 I'll start a new issue for supporting using a custom array for the breadcrumbs on any given page, as It's a good idea (both for an entire array of crumbs down to home, and just a custom array for that particular page)
I would like to know if there is any solution to use the breadcrumb on a dashboard. I have already included the breadcrumb in resolveCards so it would be on any page.
The package expects a resource but a dashboard extends from a Dashboard so i'm not sure how to implement this if even possible.