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

Latest commit

 

History

History
53 lines (39 loc) · 1.6 KB

README.md

File metadata and controls

53 lines (39 loc) · 1.6 KB

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,
            ]
        ]
    )?>