armrck / yii2-touch-spin
A Yii2 input widget extension for manage lists of input spinner with field text and field numeric.
Installs: 31
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-widget
pkg:composer/armrck/yii2-touch-spin
Requires
- yiisoft/yii2: ^2.0.0
- yiisoft/yii2-bootstrap: ^2.0.0
This package is not auto-updated.
Last update: 2025-10-26 09:19:41 UTC
README
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 ]); ?>