nsept / yii2-passfield
A password field widget for Yii2 that allows you to display/hide input characters
1.0.0
2016-03-09 15:42 UTC
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2026-03-29 03:30:28 UTC
README
A password field widget for Yii2 that allows you to display/hide input characters
Installation
Either run
composer require nsept/yii2-passfield "*"
or add
"nsept/yii2-passfield": "*"
to the require section of your composer.json file.
Usage
<?= \nsept\passfield\PassfieldWidget::widget([ 'form' => $form, 'model' => $model, 'attribute' => 'password', 'pluginOptions' => [ // Custom icons 'iconShow' => '<i class="fa fa-eye"></i>', 'iconHide' => '<i class="fa fa-eye-slash"></i>', // Custom titles 'titleShow' => 'Show', 'titleHide' => 'Hide' ] ]) ?>