Download the PHP package karatae99/yii2-datepicker-thai-bs4 without Composer
On this page you can find all versions of the php package karatae99/yii2-datepicker-thai-bs4. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download karatae99/yii2-datepicker-thai-bs4
More information about karatae99/yii2-datepicker-thai-bs4
Files in karatae99/yii2-datepicker-thai-bs4
Package yii2-datepicker-thai-bs4
Short Description Bootstrap4 DatePicker Thai Buddhist-Era (B.E.) widget for Yii2.
License BSD-3-Clause
Informations about the package yii2-datepicker-thai-bs4
Bootstrap4 DatePicker (Thai) Widget for Yii2
This is Bootstrap4 thai Buddhist-Era (B.E.) datepicker for Yii2 extension.
Credits
2amigOS! Consulting Group for inspiration by Bootstrap DatePicker Widget for Yii2 and code examples.
Kartik Visweswaran for Bootstrap 4.x styling.
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your application's composer.json
file.
Configuration
To set this up, add this section of code to your application params configuration file (e.g. common/config/params.php):
Icons for Bootstrap
Bootstrap 4.x does not include glyphicons or any other icons framework bundled with the library. To include font awesome assets on your page, include the following markup on the HEAD section of your view layout file, when bsVersion is set to 4.x. (e.g. frontend/views/layouts/main.php):
Usage
DatePicker
This widget renders a Bootstrap DatePicker input control. Best suitable for model with date string attribute.
Example of use with a form
There are two ways of using it, with an ActiveForm
instance or as a widget setting up its model
and attribute
.
DateRangePicker
This widget renders a Bootstrap4 DateRangePicker Input control.
Example of use with a form
The following example works with a model that has two attributes named date_from
and date_to
.
Further Information
Please, check the Bootstrap DatePicker site documentation for further information about its configuration options.
License
The BSD License (BSD). Please see License File for more information.