Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

mrserg161/yii2-airdatepicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Stable Version Total Downloads Latest Unstable Version License

Yii2 Air DatePicker

Renders a lightweight Air DatePicker plugin for Yii2.

Installation

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist mrserg161/yii2-airdatepicker "*"

or add

"mrserg161/yii2-airdatepicker": "*"

to the require section of your composer.json file.

Demo

You can refer detailed documentation and demos for AirDatePicker or russian docs AirDatePicker RU widgets on usage of the extension.

Usage

Once the extension is installed, simply use it in your code by :

<?php
use mrserg161\airdatepicker\DatePicker;
?>

<?= $form->field($model, 'date')
    ->widget(
        DatePicker::class, [
            'clientOptions' => [
                'autoClose' => true,
                'timepicker' => true,
            ]
        ]
    )?>