Downloads
Stars
Version
This package allows you to change the action select box to a button view.
composer require energon7/custom-action-selector
NovaServiceProvider.php:
use Energon7\CustomActionSelector\CustomActionSelector;
//...
public function tools()
{
return [
new CustomActionSelector()
];
}
Then create any action:
php artisan nova:action SomeAction
You can add icon to a action button.
SomeAction.php:
public $icon = '<svg> ... </svg>';
public function __construct()
{
$this->withMeta([
'icon' => $this->icon
]);
}
This project is open-sourced software licensed under the MIT license.