kongoon / yii2-bootstrap-datepicker-thai
Bootstrap datepicker for Buddhist-Era or Christian-Era
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- bower-asset/bootstrap-datepicker: *
- bower-asset/bootstrap-datepicker-thai: dev-master
- yiisoft/yii2: ~2.0.6
This package is not auto-updated.
Last update: 2024-11-02 18:50:05 UTC
README
Install
composer require kongoon/yii2-bootstrap-datepicker-thai "^1.0" or add this line to composer.json "kongoon/yii2-bootstrap-datepicker-thai": "^1.0"
Usage
To use this widget, insert the following code into a view file:
<?php use kongoon\yii2\datepickerthai\BootstrapDatepickerThai; echo BootstrapDatepickerThai::widget([ 'options' => [ 'id' => 'yourid', 'format' => 'dd/mm/yyyy', 'language' => 'th-th', ] ]); ?>