定制 silverstripe/timedropdownfield 二次开发

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

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

silverstripe/timedropdownfield

Composer 安装命令:

composer require silverstripe/timedropdownfield

包简介

Time dropdown for SilverStripe CMS

README 文档

README

Time Dropdown Field

Allows to select certain time intervals from a dropdown as an alternative to direct input into a TimeField. Adheres to user preferences in time formats set through the TimeField API, which by extension supports user preferences through i18n::get_time_format().

Usage

As an isolated field:

:::php
$field = TimeDropdownField::create('MyTime', 'My Time Field');

As part of a DatetimeField (requires SilverStripe 3.1):

:::php
$datetimeField = DatetimeField::create('MyDateTime', My Date and Time Field')
	->setTimeField(TimeDropdownField::create('MyDateTime[time]'));

Configuration

  • interval: Spacing in minutes between options (Default: 60)

Note: Since the field extends TimeField, most configuration happens in there.

Maintainers

  • Ingo Schommer (@chillu)

Thanks to Air New Zealand for sponsoring and contributing to this module!

统计信息

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

GitHub 信息

  • Stars: 10
  • Watchers: 4
  • Forks: 6
  • 开发语言: JavaScript

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2013-02-04