承接 nswdpc/silverstripe-datetime-inputs 相关项目开发

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

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

nswdpc/silverstripe-datetime-inputs

Composer 安装命令:

composer require nswdpc/silverstripe-datetime-inputs

包简介

Date and Datetime composite inputs for Silverstripe framework

README 文档

README

Collect a date or datetime input via single composite field made up of relevant day, month, year and time inputs. The parent field is a standard composite field with child fields submitting data within the form submission for validation.

Child input fields are standard numeric inputs. The time field is a time input.

All child fields are accessible via keyboard navigation.

Installation

composer require nswdpc/silverstripe-datetime-inputs

Usage

$dateValue = "2028-01-30";

// Date only
$field = DateCompositeField::create(
    'EventDate',
    _t(
        'app.EVENT_DATE',
        'Date of the event'
    ),
    $dateValue
)->setDescription(
    _t(
        'app.EVENT_DATE_TIME_DESCRIPTION',
        'Provide the date of the event'
    )
);

// Date and Time
$datetimeValue = "2028-01-30 11:45";

$field = DatetimeCompositeField::create(
    'EventDateTime',
    _t(
        'app.EVENT_DATE_TIME',
        'Date and time of the event'
    ),
    $datetimeValue
)->setDescription(
    _t(
        'app.EVENT_DATE_TIME_DESCRIPTION',
        'Provide the date and time of the event'
    )
);

Further documentation

License

BSD-3-Clause

Maintainers

Bugtracker

We welcome bug reports, pull requests and feature requests on the Github Issue tracker for this project.

Please review the code of conduct prior to opening a new issue.

Security

If you have found a security issue with this module, please email digital[@]dpc.nsw.gov.au in the first instance, detailing your findings.

Development and contribution

If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.

Please review the code of conduct prior to completing a pull request.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2022-05-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固