m-comscience/yii2-datepicker-thai

Yii2 bootstrap datepicker thai.

Installs: 23

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:CSS

Type:yii2-extension

v1.0.0 2018-11-18 09:11 UTC

This package is auto-updated.

Last update: 2022-06-19 21:33:19 UTC


README

993323

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