2017 © Pedro Peláez
 

yii2-extension yii2-gridster

Gridster.js widget for Yii2

image

stratoss/yii2-gridster

Gridster.js widget for Yii2

  • Friday, January 29, 2016
  • by stratoss
  • Repository
  • 1 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

Gridster.js widget for Yii2

This extension provides the Gridster.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 stratoss/yii2-gridster "*"

or add, (*5)

"stratoss/yii2-gridster": "*"

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

Usage

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

use stratoss\gridster\Gridster;
$gridster = Gridster::begin([
    'options'=>['class'=>'gridster'],
    'clientOptions'=>[
        'widget_margins'=> [10, 10],
        'widget_base_dimensions'=> [140, 140],
        'autogrow_cols'=> false,
        'resize'=>['enabled'=>true]
    ]
]);?>

= $gridster->beginWidget([
        'data-row'=>"1", 'data-col'=>"1", 'data-sizex'=>"5", 'data-sizey'=>"2",
    ]);
?>
    <header>Some text</header>
    The widget content
=$gridster->endWidget();?>

=$gridster->beginWidget([
        'data-row'=>"1", 'data-col'=>"1", 'data-sizex'=>"4", 'data-sizey'=>"1",
    ]);
?>
    <header>Some other text</header>
    The other widget content
=$gridster->endWidget();?>

<?php 
Gridster::end();

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

public $depends = [
...
'stratoss\gridster\GridsterAsset',
...
];

The Versions

29/01 2016

dev-master

9999999-dev

Gridster.js widget for Yii2

  Sources   Download

MIT

The Requires

 

by Federico Nicolás Motta
by Stanimir Stoyanov

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

29/01 2016

v2.0.7

2.0.7.0

Gridster.js widget for Yii2

  Sources   Download

MIT

The Requires

 

by Federico Nicolás Motta
by Stanimir Stoyanov

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

11/01 2016

v2.0.6

2.0.6.0

Gridster.js widget for Yii2

  Sources   Download

MIT

The Requires

 

by Federico Nicolás Motta
by Stanimir Stoyanov

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

10/01 2016

v2.0.5

2.0.5.0

Gridster.js widget for Yii2

  Sources   Download

MIT

The Requires

 

by Federico Nicolás Motta
by Stanimir Stoyanov

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

10/01 2016

v2.0.4

2.0.4.0

Gridster.js widget for Yii2

  Sources   Download

MIT

The Requires

 

by Federico Nicolás Motta
by Stanimir Stoyanov

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

10/01 2016

v2.0.3

2.0.3.0

Gridster.js widget for Yii2

  Sources   Download

MIT

The Requires

 

by Federico Nicolás Motta
by Stanimir Stoyanov

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

10/01 2016

v2.0.2

2.0.2.0

Gridster.js widget for Yii2

  Sources   Download

MIT

The Requires

 

by Federico Nicolás Motta
by Stanimir Stoyanov

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

28/04 2015

v2.0.1

2.0.1.0

Gridster.js widget for Yii2

  Sources   Download

MIT

The Requires

 

by Federico Nicolás Motta

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

27/04 2015

v2.0

2.0.0.0

Gridster.js widget for Yii2

  Sources   Download

MIT

The Requires

 

by Federico Nicolás Motta

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

25/04 2015

v1.0

1.0.0.0

Gridster.js widget for Yii2

  Sources   Download

MIT

The Requires

 

by Federico Nicolás Motta

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