tangniyuqi / yii2-laydate
The laydate widget laydate the Yii framework
Installs: 25
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Type:yii2-widget
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2025-02-20 11:07:33 UTC
README
add tangniyuqi/yii2-laydate
to composer.json
$ composer install
$ php composer.phar require tangniyuqi/yii2-laydate "*"
or add
"tangniyuqi/yii2-laydate": "*"
to the require
section of your composer.json
file.
Usage
in view:
use tangniyuqi\assets\LayDateAsset;
LayDateAsset::register($this);
or
echo $form->field($model, 'birth')->widget('tangniyuqi\laydate\LayDate', [
'format' => 'Y',
'clientOptions' => [
'type' => 'year', //see http://www.layui.com/doc/modules/laydate.html#type
'format' => 'yyyy', //see http://www.layui.com/doc/modules/laydate.html#format
]
]);