承接 konsulting/nova-action-buttons 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

konsulting/nova-action-buttons

最新稳定版本:0.2.1

Composer 安装命令:

composer require konsulting/nova-action-buttons

包简介

Allow actions to be shown as buttons in Laravel Nova

README 文档

README

THIS IS AN EARLY VERSION, TESTING AND FEEDBACK IS RECOMMENDED

As simple as possible package to allow showing actions as buttons rather than just dropdown list items.

We have used some other packages in the past, but as Nova evolves they have broken and not maintained quickly enough leading to bugs that are hard to track down.

To install, simply:

For Nova 4

    composer require konsulting/nova-action-buttons:^0.1

For Nova 5

    composer require konsulting/nova-action-buttons:^0.2

To use, you will need to identify actions to be shown as a button. This will apply to Index Actions, Detail actions, Standalone and Inline Actions.

First add the trait to the Action.

use \Konsulting\NovaActionButtons\ShowAsButton;

class ExampleAction extends Action {
    use InteractsWithQueue, Queueable, ShowAsButton;
    //...
}

Then in the resources actions method you need to use the showAsButton() method when building the action.

    (new ExampleAction)->showAsButton();

We are happy to receive contributions to this package.

统计信息

  • 总下载量: 8.78k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 2
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-09-29