Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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")