2017 © Pedro PelĂĄez
 

yii2-extension yii2-gridster

Gridster.js widget for Yii2

image

fedemotta/yii2-gridster

Gridster.js widget for Yii2

  • Monday, May 11, 2015
  • by fedemotta
  • Repository
  • 1 Watchers
  • 7 Stars
  • 1,844 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 4 Versions
  • 5 % 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 fedemotta/yii2-gridster "*"

or add, (*5)

"fedemotta/yii2-gridster": "*"

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

Usage

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

use fedemotta\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 = [
...
'fedemotta\gridster\GridsterAsset',
...
];

The Versions

11/05 2015

dev-master

9999999-dev

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

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