2017 © Pedro PelĂĄez
 

yii2-extension yii2-gridstack

Gridstack.js widget for Yii2

image

fedemotta/yii2-gridstack

Gridstack.js widget for Yii2

  • Wednesday, July 26, 2017
  • by fedemotta
  • Repository
  • 2 Watchers
  • 5 Stars
  • 1,845 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 4 Versions
  • 9 % Grown

The README.md

Gridstack.js widget for Yii2

This extension provides the Gridstack.js integration for the Yii2 framework., (*1)

Latest Stable Version Total Downloads Latest Unstable Version License, (*2)

Installation

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

Either run, (*4)

php composer.phar require --prefer-dist fedemotta/yii2-gridstack "*"

or add, (*5)

"fedemotta/yii2-gridstack": "*"

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

Usage

Use Gridstack.js as any other other Yii2 widget., (*7)

use fedemotta\gridstack\Gridstack;
['class'=>'grid-stack'],
    'clientOptions'=>[
        'cellHeight'=> 80,
        'verticalMargin'=> 10,
    ],
]);?>

=$gridstack->beginWidget(['class'=>'grid-stack-item','data-gs-width'=>"4",'data-gs-height'=>"2",'data-gs-x'=>"0",'data-gs-y'=>"0",]);?>
    <div class="grid-stack-item-content"></div>
=$gridstack->endWidget();?>

=$gridstack->beginWidget(['class'=>'grid-stack-item','data-gs-width'=>"4",'data-gs-height'=>"4",'data-gs-x'=>"4",'data-gs-y'=>"0",]);?>
    <div class="grid-stack-item-content"></div>
=$gridstack->endWidget();?>


You can also use Gridstack.js in the JavaScript layer of your application. To achieve this, you need to include Gridstack as a dependency of your Asset file., (*8)

public $depends = [
...
'fedemotta\gridstack\GridstackAsset',
...
];

The Versions

26/07 2017

dev-master

9999999-dev

Gridstack.js widget for Yii2

  Sources   Download

MIT

The Requires

  • yiisoft/yii2 *
  • bower-asset/lodash >= 3.5.0
  • bower-asset/jquery >= 1.11.0
  • bower-asset/jquery-ui >= 1.11.0
  • bower-asset/gridstack @dev

 

by Federico NicolĂĄs Motta

plugin extension yii2 jquery grid responsive drag-and-drop multi-column gridstack gridstack.js

04/05 2015

v1.1

1.1.0.0

Gridstack.js widget for Yii2

  Sources   Download

MIT

The Requires

  • yiisoft/yii2 *
  • bower-asset/lodash >= 3.5.0
  • bower-asset/jquery >= 1.11.0
  • bower-asset/jquery-ui >= 1.11.0
  • bower-asset/gridstack @dev

 

by Federico NicolĂĄs Motta

plugin extension yii2 jquery grid responsive drag-and-drop multi-column gridstack gridstack.js

30/04 2015

v1.0.1

1.0.1.0

Gridstack.js widget for Yii2

  Sources   Download

MIT

The Requires

  • yiisoft/yii2 *
  • bower-asset/lodash >= 3.5.0
  • bower-asset/jquery >= 1.11.0
  • bower-asset/jquery-ui >= 1.11.0
  • bower-asset/gridstack > 0.2.2

 

by Federico NicolĂĄs Motta

plugin extension yii2 jquery grid responsive drag-and-drop multi-column gridstack gridstack.js

29/04 2015

v1.0

1.0.0.0

Gridstack.js widget for Yii2

  Sources   Download

MIT

The Requires

  • yiisoft/yii2 *
  • bower-asset/lodash >= 3.5.0
  • bower-asset/jquery >= 1.11.0
  • bower-asset/jquery-ui >= 1.11.0
  • bower-asset/gridstack > 0.2.2

 

by Federico NicolĂĄs Motta

plugin extension yii2 jquery grid drag-and-drop multi-column gridstack gridstack.js