watnweb/datefield
Composer 安装命令:
composer require watnweb/datefield
包简介
Date field for the DreamForm plugin for Kirby CMS
README 文档
README
This plugin extends DreamForm for Kirby CMS by adding a Date field.
Features
- Native Datepicker: Style and customize it to your needs.
- Limit Dates: Allows configuration of minimum and maximum date values.
- Default Value: Can set the current date or a fixed date as the default value.
- Future Dates Only Optionally prevent selection of past dates.
- Validation: Includes built-in validation to ensure correct date input.
Installation
- Download the plugin files.
- Place the plugin directory into your Kirby
site/pluginsfolder.
Styling
If you are using Tailwind or the demo styles I reccomend adding the following classes to your dreamform/form snippet:
'date' => [ "error" => ['class' => 'hidden group-data-[has-error]:group-has-[:invalid]:block text-red-500 text-sm'], "input" => ['class' => 'peer group-data-[has-error]:group-has-[:invalid]:mb-2 shadow-sm group-data-[has-error]:group-has-[:invalid]:border-red-500 w-full border border-gray-200 rounded p-2'] ]
Panel Preview
There currently is no panel preview for this field yet. For now it uses the text-field preview.
This way you can at least set basic attributes like the key or label inline. More settings can be found in the Edit overlay.
watnweb/datefield 适用场景与选型建议
watnweb/datefield 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8 次下载、GitHub Stars 达 3, 最近一次更新时间为 2024 年 07 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 watnweb/datefield 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 watnweb/datefield 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 25
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-25