Download the PHP package norman-huth/nova-resource-card without Composer
On this page you can find all versions of the php package norman-huth/nova-resource-card. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download norman-huth/nova-resource-card
More information about norman-huth/nova-resource-card
Files in norman-huth/nova-resource-card
Informations about the package nova-resource-card
📦 Archived
This repository is archived and no longer maintained.
If you offer, maintain, or know of an actively maintained alternative to this project, please contact me at [email protected].
If the alternative references this repository as its source, inspiration, predecessor, or migration path, I may list it here so existing users can find a maintained replacement.
Nova Resource Card
With this package You can use Nova Resources Index as Card.
(For example on the Dashboard or other Nova resource)
Limitations:
- No search
- No pagination
- No actions
- No cards
Examples from example-app-nvpRt7
This package will certainly be extended in the course of time. Watch this package for Updates.
For suggestions and wishes
please create an issue.
Install
Usage
This usage examples use the Laravel Nova User resource class as example.
Add Nova Resource Card To A Dashboard
Add Nova Resource Card To A Other Nova Resource
Card Methods
Activate Footer Link To The Resource Index
Use the setFooterLinkLabel method.
Use A Other Nova Resource As Footer Link Target
Use the setFooterLinkResource method.
Use A External Url For Footer Link
Use the setFooterLinkExternalUrl method.
Set Detail Link Resource
By default, this package generate the detail link by Resource::$model, so that you can use several resources for one model without any effort.
Use the setDetailLinkResource method.
Set Card Width
Use the width method.
#[ExpectedValues(values: ['full', '1/3', '1/2', '1/4', '2/3', '3/4'])]
Add Classes To Card Element
Use the addCardClasses method.
Add Classes To Resource Heading
Use the addResourceHeadingClasses method.
Add Classes To Resource IndexErrorDialog
Use the addResourceIndexErrorDialogClasses method.
Add Classes To Resource IndexEmptyDialog
Use the addResourceIndexEmptyDialogClasses method.
Add Classes To Resource ResourceTable
Use the addResourceResourceTableClasses method.
Advanced Usage
Create your own Nova resource to customize it even more.
You should set $globallySearchable to false so that this resource is not included in the global search.
(See: Disabling Global Search For A Resource)
Examples Resource from example-app-nvpRt7