tejrajs / yii2-nepali-datepicker
Yii2 Nepali Datepicker Widget
Installs: 267
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 1
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2025-01-14 16:30:35 UTC
README
fullcalendar yii2 widget
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist tejrajs/yii2-nepali-datepicker "dev-master"
or add
"tejrajs/yii2-nepali-datepicker": "dev-master"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
<?php use tejrajs\datepicker\NepaliDatepicker; ?> <?= NepaliDatepicker::widget([ 'name' => 'Test', 'value' => '02-16-2012', 'template' => '{addon}{input}', 'clientOptions' => [ 'autoclose' => true, 'onFocus' => false, ] ]);?> OR <?= $form->field($model, 'date')->widget(\tejrajs\datepicker\NepaliDatepicker::className(),[ 'clientOptions' => [ 'autoclose' => true, 'onFocus' => false, 'ndpTriggerButton' => true, 'ndpTriggerButtonText' => 'Date', 'ndpTriggerButtonClass' => 'btn btn-primary btn-sm' ] ]) ?>