A card with no setup
Products have a resource without quickLook(). The card shows the record title and the global search details (SKU, price, supplier); the details show the resource’s infolist(), like Filament’s own View action.
Note: Try it
Put the pointer on a product, then click it.
| Product (no setup) | SKU |
|---|---|
|
Ballpoint pens (12)
|
OF-PEN
|
|
Copy paper A3
|
PAP-A3
|
|
Copy paper A4
|
PAP-A4
|
|
Envelopes C5
|
ENV-C5
|
What the card shows: image, badge, details
CustomerResource::quickLook() adds a logo (->image()), a badge for the tier (->badge()) and four “label: value” rows (->details()).
Note: Try it
Put the pointer on a customer: the card has the logo, the badge and the four rows. Compare it with the product card above.
| Customer (quickLook()) | City |
|---|---|
|
Acme Corp
|
Boston
|
|
Bluebird Foods
|
Denver
|
|
Cedar & Pine
|
Portland
|
|
Delta Logistics
|
Houston
|