%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/11585/cwd/html/ppaobm/vendor/zhuravljov/yii2-datetime-widgets/ |
Upload File : |
Datetime widgets for Yii2 ========================= [](https://packagist.org/packages/zhuravljov/yii2-datetime-widgets) [](https://packagist.org/packages/zhuravljov/yii2-datetime-widgets) Installation ------------ The preferred way to install this extension is through [composer](http://getcomposer.org/download/). Add ``` "zhuravljov/yii2-datetime-widgets" : "~1.1.0" ``` to the require section of your application's `composer.json` file. DatePicker ---------- [Demo](https://uxsolutions.github.io/bootstrap-datepicker) from the bootstrap-datepicker plugin website. ### Usage ```php <?= $form->field($model, 'attribute')->widget(DatePicker::class, [ 'clientOptions' => [ 'format' => 'dd.mm.yyyy', 'language' => 'ru', 'autoclose' => true, 'todayHighlight' => true, ], 'clientEvents' => [], ]) ?> ``` DateTimePicker -------------- [Demo](http://www.malot.fr/bootstrap-datetimepicker/demo.php) from the bootstrap-datetimepicker plugin website. ### Usage ```php <?= $form->field($model, 'attribute')->widget(DateTimePicker::class, [ 'clientOptions' => [ 'format' => 'dd.mm.yyyy hh:ii', 'language' => 'ru', 'autoclose' => true, ], 'clientEvents' => [], ]) ?> ``` DateRangePicker --------------- [Demo](http://www.daterangepicker.com) from the bootstrap-daterangepicker plugin website. ### Usage ```php <?= $form->field($model, 'actual_time')->widget(DateRangePicker::class, [ 'clientOptions' => [ 'locale' => [ 'format' => 'YYYY-MM-DD', 'separator' => ' - ', ], 'ranges' => [ 'Today' => [ new JsExpression('moment()'), new JsExpression('moment()'), ], 'Yesterday' => [ new JsExpression('moment().subtract(1, "days")'), new JsExpression('moment().subtract(1, "days")'), ], ], ], 'clientEvents' => [], ]) ?> ```