Skip to content

Baha2Odeh/yii2-pincode-input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 Bootstrap Pincode Input

Yii2 Bootstrap Pincode Input

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist baha2odeh/yii2-pincode-input "*"

or add

"baha2odeh/yii2-pincode-input": "*"

for bootstrap 4

"baha2odeh/yii2-pincode-input": "dev-bs4"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= \Baha2Odeh\PincodeInput\PinCodeInput::widget([
                                'model' => $model,
                                'attribute' => 'pincode',
                                'jsOptions' => [
                                    'hidedigits'=>false,
                                    'inputs'=>4
                                ],
                            
                            ]) ?>
<?= $form->field($model, 'pincode')->widget(\Baha2Odeh\PincodeInput\PinCodeInput::className(), [
                                'jsOptions' => [
                                    'hidedigits'=>false,
                                    'inputs'=>4
                                ],
                            ])->label(false) ?>

JsOptions

http://fkranenburg.github.io/bootstrap-pincode-input/

About

Yii2 pincode input

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages