lemonlabs/nova-action-button-selectors
最新稳定版本:v1.1.1
Composer 安装命令:
composer require lemonlabs/nova-action-button-selectors
包简介
A Laravel Nova asset.
README 文档
README
This package allows you to add buttons for Nova actions on the detail page instead having them all within the dropdown menu.
This package is forked from lednerb/nova-action-button-selectors
Requirements
php: ^8laravel/nova: ^4|^5
How to install
composer require lemonlabs/nova-action-button-selectors
Usage
In your Action class define the following trait:
... use LemonLabs\ActionButtonSelector\ShowAsButton; class MyAction extends Action { use InteractsWithQueue, Queueable; use ShowAsButton; ...
If you want to hide the button on some Detail pages, use the following method in the Nova Model's actions array:
... public function actions(NovaRequest $request) { return [ MyCustomAction::make() ->onlyOnDetail() ->withoutConfirmation() ->showAsButton(false), ...
统计信息
- 总下载量: 2.5k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-13

