Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/armandoricky/yii2-touch-spin
- Owner: armandoricky
- Created: 2017-09-16T17:33:55.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-19T00:56:08.000Z (about 7 years ago)
- Last Synced: 2023-08-21T08:02:33.474Z (about 1 year ago)
- Topics: input, spinner, widget-extension, yii2-extension, yii2-widgets
- Language: PHP
- Size: 1.8 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
]);
?>
```