ravaelles/novachecklists
Composer 安装命令:
composer require ravaelles/novachecklists
包简介
A Laravel Nova field to display a list of items to complete.
README 文档
README
Fork of https://github.com/encima-io/novachecklists that uses multi-line textareas instead of single-line inputs for checklist items.
Installation
You can install the package via composer:
composer require Ravaelles/novachecklists
Usage
use Ravaelles\NovaChecklist\Checklist; Checklist::make('Tasks') ->placeholder('Add another task') // Defaults to "Add item" ->withPlaceholderCount() // Not active by default ->logUsers() // Not active by default, accepts user-model column. Uses "name" when column isn't provided. ->showTimestamps() // Not active by default ->showItemStatusOnIndex() // Not active by default ->showCompletionOnIndex(), // Not active by default
To use this package you'll need a text or JSON column on you model to save the items/tasks, as they are persisted as json on your model.
Form-page
The ->placeholder() method allows you to specify your placeholder-text for the "add new item field".
The ->withPlaceholderCount() method lets you show the item number when adding new item. If there is already 5 items, then it will say "Add item 6".
The ->logUsers() method allows you to save which user created or completed the task/item. You specify which column on the User model you want to save on task, it default to use the "name" column.
You can edit an existing item by clicking on it.
Detail-page
The ->showTimestamps() method lets you show how long ago a task was completed.
Index-page
By default this package will only show the task count on the index page.
The ->showItemStatusOnIndex() will change the index to show how many tasks are completed of the total amount of tasks/items.
The ->showCompletionOnIndex() method will let you show how many percent of the tasks are completed.
use Ravaelles\NovaChecklist\Checklist; Checklist::make('Tasks') ->placeholder('Add task ') ->withPlaceholderCount() ->logUsers() ->showTimestamps() ->showItemStatusOnIndex() ->showCompletionOnIndex(),
License
The MIT License (MIT).
ravaelles/novachecklists 适用场景与选型建议
ravaelles/novachecklists 是一款 基于 Vue 开发的 Composer 扩展包,目前已累计 492 次下载、GitHub Stars 达 1, 最近一次更新时间为 2021 年 11 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「nova」 「input」 「laravel」 「field」 「checkboxes」 「checkbox」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ravaelles/novachecklists 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ravaelles/novachecklists 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ravaelles/novachecklists 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel Nova card that shows you your system information.
A Laravel Nova card.
Yii2 map input widget. Allows you to select geographcal coordinates via a human-friendly inteface.
Widget to add a remaining character counter to text inputs and textareas
A Laravel Nova package for publishable fields
A Laravel Nova package for translatable fields
统计信息
- 总下载量: 492
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-11-10



