modernkernel / yii2-jnumber
Yii2 jQuery Number
Installs: 70
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Type:yii2-extension
Requires
- bower-asset/jquery-number: ~2.0
- yiisoft/yii2: ~2.0
This package is not auto-updated.
Last update: 2022-02-01 13:04:05 UTC
README
Yii2 jQuery Number
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist powerkernel/yii2-jnumber "*"
or add
"powerkernel/yii2-jnumber": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
$form->field($model, 'number')->widget(JNumberInput::className(), ['scale'=>2])