Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/armandoricky/yii2-touch-spin

A Yii2 input widget extension for manage lists with item and quantity.
https://github.com/armandoricky/yii2-touch-spin

input spinner widget-extension yii2-extension yii2-widgets

Last synced: 14 days ago
JSON representation

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

Awesome Lists containing this project

README

        

Yii2-TouchSpin
==============

![example](https://w3bsistemas.com/shared/yii2-touch-spin/armrck-touch-spin-demo.gif)

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](http://getcomposer.org/download/).

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 :

```php
= 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
]);
?>
```