Download the PHP package dillingham/nova-list-card without Composer
On this page you can find all versions of the php package dillingham/nova-list-card. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dillingham/nova-list-card
More information about dillingham/nova-list-card
Files in dillingham/nova-list-card
Informations about the package nova-list-card
Nova List Card
Add a variety of lists to your dashboard
Install
Basic Usage
Possible Scenarios
- Latest resource / oldest resource
- Upcoming / past due resources
- Top resource by relationship count
- Top resource by relationship's column sum
Card Width
Set the card's width, default 1/3
Card Heading
Resource Subtitle
Display resource subtitle beneath the title
or display resource proporties beneath the title
Timestamps
Adds timestamp beneath resource title
Optionally can add as a side value, see below.
Defaults: created_at & moment.js format: MM/DD/YYYY:
Relative timestamps: 5 days ago
| in 5 days
Side Values
Display resource values on the right side
Aggregated Count
Add counts of relationships:
Aggregated Sum
Add sum of relationship's column:
Value formatting
You can change the value output using numeral.js
Value Timestamp: add third parameter for moment.js formats
Limit
Set the number of items to display, default: 5:
OrderBy
Set the order of the resources:
Show View All Link
You can link to the resource's index
Or to a lens attached to the resource
Footer Link
You can link to a urL instead of using viewAll:
Scoped Resource
Check the card's uri key within IndexQuery:
CSS Classes
Customize styles easily if you have your own theme.css
Also includes resource specific classes etc
Also can target specific rows
The uri key is added to the card
You can also add classes manually
You can also add alternate row formatting
Examples
Methods
Method | Description |
---|---|
resource() | declare the resource |
heading() | add a title to card |
subtitle() | display subtitle value |
timestamp() | display & format timestamp |
value() | display right side value |
withCount() | aggregate count value |
withSum() | aggregate sum value |
orderBy() | set the resource order |
limit() | set number of resources |
viewAll() | enable view all link |
viewAllLens() | enable lens view all |
footerLink() | add a static footer link |
zebra() | add alternate row color |
id() | unique id for card's requests |
classes() | add css classes to card |