Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keygenqt/datepicker
DatePicker using standard components yii2.
https://github.com/keygenqt/datepicker
extensions yii2
Last synced: about 11 hours ago
JSON representation
DatePicker using standard components yii2.
- Host: GitHub
- URL: https://github.com/keygenqt/datepicker
- Owner: keygenqt
- License: apache-2.0
- Created: 2016-06-03T08:57:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-07-02T08:09:42.000Z (over 2 years ago)
- Last Synced: 2024-11-13T14:53:18.412Z (4 days ago)
- Topics: extensions, yii2
- Language: PHP
- Homepage:
- Size: 56.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Datepicker
===================![GitHub](https://img.shields.io/github/license/keygenqt/yii2-datepicker)
![Packagist Downloads](https://img.shields.io/packagist/dt/keygenqt/yii2-datepicker)Yii2 DatePicker jquery ui with style like bootstrap.
## Installation
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either add
```
"require": {
"keygenqt/yii2-datepicker": "*"
},
```of your `composer.json` file.
## Usage
View:
```php
use keygenqt\datePicker\DatePicker;= DatePicker::widget([
'model' => $model,
'attribute' => 'updated',
'language' => 'en-US',
'dateFormat' => 'php:d-M-Y',
'clientOptions' => [
'showOtherMonths' => true,
'selectOtherMonths' => true,
'dayNamesMin' => array('S', 'M', 'T', 'W', 'T', 'F', 'S')
]
]) ?>```
View:
```php
use keygenqt\datePicker\DatePicker;= $form->field($model, 'date')->widget(DatePicker::className(), [
'placeholder' => 'Date',
'icon' => false,
'selectDay' => false,
'dateFormat' => 'php:F, Y'
]); ?>```
## Screenshot
![Alt text](https://raw.githubusercontent.com/keygenqt/yii2-datepicker/master/screenshot/example.png?raw=true "Empty")
![Alt text](https://raw.githubusercontent.com/keygenqt/yii2-datepicker/master/screenshot/example3.png?raw=true "Empty")