Skip to content

A Yii2 input widget extension for manage lists with item and quantity.

Notifications You must be signed in to change notification settings

armandoricky/yii2-touch-spin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yii2-TouchSpin

example

A Yii2 input widget extension for manage lists of input spinner with field text and field numeric.

Installation

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist armrck/yii2-touchspin "*"

or add

"armrck/yii2-touchspin": "*"

to the require section of your composer.json file.

Usage

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

<?= TouchSpin::widget([
        'model' => $model, 
        'attribute1' => 'item', // Attribute 1 in your Model
        'attribute2' => 'item_qtd_aluno', // Attribute 2 in your Model
        'items' => ArrayHelper::toArray($model->alunoExpectativaItens) // Array
    ]);
?>

About

A Yii2 input widget extension for manage lists with item and quantity.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published