Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bscheshirwork/yii-bootstrap-datetimepicker
yii-bootstrap-datetimepicker
https://github.com/bscheshirwork/yii-bootstrap-datetimepicker
Last synced: about 1 month ago
JSON representation
yii-bootstrap-datetimepicker
- Host: GitHub
- URL: https://github.com/bscheshirwork/yii-bootstrap-datetimepicker
- Owner: bscheshirwork
- License: mit
- Created: 2015-01-19T11:30:42.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-20T13:25:56.000Z (almost 10 years ago)
- Last Synced: 2023-08-05T04:03:20.089Z (over 1 year ago)
- Language: JavaScript
- Size: 188 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
yii-bootstrap-timepicker
========================Yii wrapper for
https://github.com/tarruda/bootstrap-datetimepicker/
http://tarruda.github.io/bootstrap-datetimepicker/usage:
First, import the widget class file / Импортируем виджет:
```php
Yii::import('application.vendor.bscheshir.yii-bootstrap-datetimepicker.DateTimePicker', true);
```Next, call the widget / Вызываем виджет:
```php
$this->widget('DateTimePicker', [
'model' => $model,
'attribute' => 'Date',
// опции см. http://tarruda.github.io/bootstrap-datetimepicker/
'options' => [
'language' => 'ru',
'format' => 'yyyy-MM-dd hh:mm:ss',//yyyy-MM-dd HH:mm:ss
//maskInput: true, // disables the text input mask
//pickDate: true, // disables the date picker
//pickTime: true, // disables de time picker
//pick12HourFormat: false, // enables the 12-hour format time picker
//pickSeconds: true, // disables seconds in the time picker
//startDate: -Infinity, // set a minimum date
//endDate: Infinity // set a maximum date
],
]);
```