havennow / yii2-jquery.mask
Widget wrapper for jquery.mask
Installs: 183
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/havennow/yii2-jquery.mask
Requires
This package is not auto-updated.
Last update: 2025-11-15 01:52:44 UTC
README
Widget wrapper for jquery mask https://igorescobar.github.io/jQuery-Mask-Plugin
#Basic usage
use havennow\widgets\JqueryMask;
echo $form->field($model, 'input')->textInput()
->widget(JqueryMask::className(), [
'mask' => '99/99/9999',
]);?>
or
echo JqueryMask::widget(['model' => $model, 'attribute'=> 'input','mask' => '99.99','htmlOptions'=> ['class' => 'myclass'],'options' => 'from https://igorescobar.github.io/jQuery-Mask-Plugin docs');