marciocamello / yii2-mcms-maskmoney
Mask Money base in Jquery maskMoney
Installs: 110
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
This package is not auto-updated.
Last update: 2024-12-21 17:27:48 UTC
README
Mask Money base in Jquery maskMoney http://plentz.github.io/jquery-maskmoney/
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist marciocamello/yii2-mcms-maskmoney "*"
or add
"marciocamello/yii2-mcms-maskmoney": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
<? echo $form->field($model, 'price')->widget(\mcms\maskmoney\MaskMoney::className(),[ 'htmlOptions' => [ 'placeholder' => '0.00', ] ]); echo \mcms\maskmoney\MaskMoney::widget([ 'name' => 'price', 'htmlOptions' => [ 'placeholder' => '0.00', ] ]); ?>