yii2-touch-spin A Yii2 widget for manage lists of input spinner with extra text field.

Yii2-Touch-Spin

  1. Installation
  2. Usage

example

A Yii2 widget for manage lists of input spinner with extra text field.

This widget is responsive (theme Bootstrap) and easy to use.

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
    ]);
?>
0 0
1 follower
0 downloads
Yii Version: 2.0
License: BSD-2-Clause
Category: User Interface
Developed by: Armando
Created on: Sep 17, 2017
Last updated: 7 years ago

Related Extensions