nsept / yii2-passfield
A password field widget for Yii2 that allows you to display/hide input characters
Installs: 4 646
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-11-09 19:37:59 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' ] ]) ?>