m-comscience / yii2-datepicker-thai
Yii2 bootstrap datepicker thai.
Installs: 38
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:CSS
Type:yii2-extension
Requires
- kartik-v/yii2-field-range: dev-master
- kartik-v/yii2-krajee-base: >=2.0.0
This package is auto-updated.
Last update: 2025-03-20 03:29:06 UTC
README
Yii2 Extension
Installation
To install
$ composer require m-comscience/yii2-datepicker-thai "@dev"
Usage
use mcomscience\datepicker\DatePicker; // usage without model echo \yii\helpers\Html::label('Date'); echo DatePicker::widget([ 'name' => 'date', 'value' => date('d/m/Y'), // 10/10/2561 'options' => ['placeholder' => 'Select date ...'], 'pluginOptions' => [ 'autoclose' => true, 'format' => 'dd/mm/yyyy', 'language' => 'th', 'todayHighlight' => true, 'todayBtn' => true, ], ]);