Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adeattwood/yii2-ui-date-time-picker
Yii 2 Date time picker useing jquery ui and the timepicker addon
https://github.com/adeattwood/yii2-ui-date-time-picker
Last synced: about 1 month ago
JSON representation
Yii 2 Date time picker useing jquery ui and the timepicker addon
- Host: GitHub
- URL: https://github.com/adeattwood/yii2-ui-date-time-picker
- Owner: AdeAttwood
- Created: 2017-01-07T21:23:19.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-07T23:14:56.000Z (about 8 years ago)
- Last Synced: 2024-10-14T20:53:12.786Z (3 months ago)
- Language: PHP
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# yii2-ui-date-time-picker
Yii 2 Date time picker using [jquery ui](https://jqueryui.com/) and the time picker add onThis widget uses timepicker addon for jQuery UI [Datepicker](http://trentrichardson.com/examples/timepicker/)
## Installation
- - -
~~~
composer require adeattwood/yii2-ui-date-time-picker
~~~## Usage
- - -
### Basic usage
~~~php
use adeattwood\yii2\datetimepicker\UiDateTimePicker;= UiDateTimePicker::widget([
'name' => 'date-picker',
]) ?>
~~~### Use with active form
~~~php
use adeattwood\yii2\datetimepicker\UiDateTimePicker;= $form->field($model, 'date-time')->widget(
UiDateTimePicker::classname()
); ?>
~~~### Adding options to the date time picker
Options can be found in the time addon [documentation](http://trentrichardson.com/examples/timepicker/)
~~~php
use adeattwood\yii2\datetimepicker\UiDateTimePicker;= $form->field($model, 'date-time')->widget(
UiDateTimePicker::classname()
[
'datePickerOptions' => [
'controlType' => 'select',
'oneLine' => true,
'timeFormat' => 'hh:mm tt'
]
]
); ?>
~~~