定制 marcoguada/mg-filament-timepicker 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

marcoguada/mg-filament-timepicker

最新稳定版本:v0.1.0

Composer 安装命令:

composer require marcoguada/mg-filament-timepicker

包简介

A Filament v5 plugin that enhances timepicker fields with a popup time selector.

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

A Filament v5 plugin that enhances native TimePicker fields with a visual popup time selector.

Two styles are available: linear (vertical sliders) and radial (clock dial).

Requirements

  • PHP 8.2+
  • Filament v5

Installation

composer require marcoguada/mg-filament-timepicker

Usage

Chain the macros onto any native TimePicker field:

use Filament\Forms\Components\TimePicker;

TimePicker::make('start_time')
    ->popup(true)
    ->popupStyle('linear')   // 'linear' (default) or 'radial' ->popupStyle('radial')
    ->popupFormat(24)        // 24 (default) or 12
    ->format('H:i')
    ->displayFormat('H:i')
    ->seconds(false),

Macros

Macro Default Description
->popup(bool $enabled = true) Activates the popup on the field
->popupStyle(string $style = 'linear') 'linear' UI style: 'linear' or 'radial'
->popupFormat(int $format = 24) 24 Default hour format shown in the popup: 24 or 12

The user can toggle between 12h and 24h at any time from inside the popup.

Linear style

Vertical sliders for hours and minutes. Drag up/down to set the time.

Radial style

Classic clock dial. Drag the hour and minute handles around the clock face.

Translations

English and Italian are included out of the box. To publish the translation files for customization:

php artisan vendor:publish --tag="mg-filament-timepicker-translations"

Changelog

Please see CHANGELOG for recent changes.

Author

Marco Guadamarco-guada.com

License

The MIT License (MIT). Please see License File for more information.

MG Filament Timepicker MG Filament Timepicker MG Filament Timepicker MG Filament Timepicker

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固