Download the PHP package kayacekovic/nova-action-button without Composer
On this page you can find all versions of the php package kayacekovic/nova-action-button. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kayacekovic/nova-action-button
More information about kayacekovic/nova-action-button
Files in kayacekovic/nova-action-button
Package nova-action-button
Short Description A Laravel Nova field to run actions.
License MIT
Homepage https://github.com/pdmfc/nova-action-button
Informations about the package nova-action-button
Nova Action Button
This package allows you to execute an action directly on your resource table view.
Installation
Usage
The action()
method requires two params - the action class name or a new instance, and the target resource id.
Disabling button
You can use the native Laravel nova readonly() method to prevent users from clicking the button:
Change the button text
To edit the button text content, use the text()
method.
Enable the loading animation on button and change color
To enable the loading animation on button and change color, use showLoadingAnimation()
and loadingColor('#fff')
method.
Change button color
To change button color, use buttonColor('#21b970')
method.
Caveats
- Currently, in order to use this field, you still have to declare the action in your resource
actions()
method.
How to contribute
- clone the repo
-
on
composer.json
of a laravel nova application add the following: - run
composer update pdmfc/nova-action-button
You're now ready to start contributing!
Changelog
Please see CHANGELOG for more information on what has changed recently.