2017 © Pedro Peláez
 

yii2-extension yii2-sortable-input

Sortable input widget based on yii2-sortable extension.

image

kartik-v/yii2-sortable-input

Sortable input widget based on yii2-sortable extension.

  • Tuesday, April 21, 2015
  • by kartik-v
  • Repository
  • 1 Watchers
  • 18 Stars
  • 59,261 Installations
  • PHP
  • 10 Dependents
  • 0 Suggesters
  • 6 Forks
  • 8 Open issues
  • 5 Versions
  • 9 % Grown

The README.md

Krajee Logo
yii2-sortable-input
Donate

Stable Version Unstable Version License Total Downloads Monthly Downloads Daily Downloads, (*1)

An input widget for Yii 2.0 widget based on the yii2-sortable extension that allows you to create sortable-input lists and grids and manipulate them using simple drag and drop. It extends the yii2-sortable features by allowing you to store the sort order in a form input (which is hidden by default). The widget stores the order as delimited list item keys. The widget includes additional jQuery enhancements to initialize the list, trap sortable order change, and reset order on form reset., (*2)

Demo

You can see detailed documentation on usage of the extension., (*3)

Installation

The preferred way to install this extension is through composer., (*4)

NOTE: Check the composer.json for this extension's requirements and dependencies. Read this web tip /wiki on setting the minimum-stability settings for your application's composer.json., (*5)

Either run, (*6)

$ php composer.phar require kartik-v/yii2-sortable-input "dev-master"

or add, (*7)

"kartik-v/yii2-sortable-input": "dev-master"

to the require section of your composer.json file., (*8)

Usage

SortableInput

use kartik\sortinput\SortableInput;
echo SortableInput::widget([
    'model' => $model,
    'attribute' => 'sort_list',
    'hideInput' => false,
    'delimiter' => '~',
    'items' => [
        1 => ['content' => 'Item # 1'],
        2 => ['content' => 'Item # 2'],
        3 => ['content' => 'Item # 3'],
        4 => ['content' => 'Item # 4', 'disabled'=>true],
    ]   
]);

License

yii2-sortable-input is released under the BSD-3-Clause License. See the bundled LICENSE.md for details., (*9)

The Versions

21/04 2015

dev-master

9999999-dev https://github.com/kartik-v/yii2-sortable-input

Sortable input widget based on yii2-sortable extension.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 jquery bootstrap range widget input sortable

10/11 2014

1.1.0.x-dev

1.1.0.9999999-dev https://github.com/kartik-v/yii2-sortable-input

Sortable input widget based on yii2-sortable extension.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 jquery bootstrap range widget input sortable

10/11 2014

v1.1.0

1.1.0.0 https://github.com/kartik-v/yii2-sortable-input

Sortable input widget based on yii2-sortable extension.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 jquery bootstrap range widget input sortable

05/10 2014

1.0.0.x-dev

1.0.0.9999999-dev https://github.com/kartik-v/yii2-sortable-input

Sortable input widget based on yii2-sortable extension.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 jquery bootstrap range widget input sortable

05/10 2014

v1.0.0

1.0.0.0 https://github.com/kartik-v/yii2-sortable-input

Sortable input widget based on yii2-sortable extension.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 jquery bootstrap range widget input sortable