kak / datetimepicker
datetimepicker widget for Yii2
Installs: 2 212
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- npm-asset/eonasdan-bootstrap-datetimepicker: ^4.17.37
This package is auto-updated.
Last update: 2024-10-18 14:48:33 UTC
README
Yii widget bootstrap DateTimePicker
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist kak/datetimepicker "*"
or add
"kak/datetimepicker": "*"
to the require section of your composer.json
file.
Usage
use kak\widgets\datetimepicker\DateTimePicker; ?> ... <?=$form->field($model,'dateIn')->widget(DateTimePicker::className(),[ 'locale' => 'ru', 'format' => 'DD.MM.YYYY', 'showInputIcon' => false ])?>
Or
<?=DateTimePicker::widget([ 'name' => 'dateIn', 'clientOptions' => [ 'locale' => 'ru' ] ]);?>
full docs https://getdatepicker.com/4/Options/ for clientOptions