nsept/yii2-passfield A password field widget for Yii2 that allows you to display/hide input characters

extensionwidgetforminputfieldpassword

Yii2-passfield

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'
    ]
]) ?>

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.0.0 is the latest of one release



MIT license
Stats
1 github stars & 0 github forks
1 downloads in the last day
53 downloads in the last 30 days
4646 total downloads