An AngularJs project with responsive gridster layout and dynamic json loading
#Installation
- bower install
- setup source code on your IDE
- start index.html and try the example layouts
- create a new json file and name it as N.json (where N is a number). Here the JSON structure:
{
"layout":
[
{...grid_items...},
],
"options":{...grid_options...}
}
{
"layout":
[
{"col":1,"row":1,"size_x":10,"size_y":5,"class":"widget", "content":"<div>1</div>"},
{"col":11,"row":1,"size_x":6,"size_y":5,"class":"widget","content":"<div>2</div>"},
{"col":1,"row":6,"size_x":16,"size_y":3,"class":"widget","content":"<div>3</div>"},
{"col":1,"row":9,"size_x":16,"size_y":1,"class":"widget","content":"<div>4</div>"}
],
"options":{"cols":16,"rows":9}
}
- create a new css file and name it as N.css (where N is a number).
Put here your widget style classes
For further information see on the layout folder the existing layouts.
![ScreenShot](https://raw.github.com/alchimya/angular-dynamic-responsive-gridster/master/screenshots/layout_1_1.gif) ![ScreenShot](https://raw.github.com/alchimya/angular-dynamic-responsive-gridster/master/screenshots/layout_1_2.gif) ![ScreenShot](https://raw.github.com/alchimya/angular-dynamic-responsive-gridster/master/screenshots/layout_2_1.gif) ![ScreenShot](https://raw.github.com/alchimya/angular-dynamic-responsive-gridster/master/screenshots/layout_2_2.gif) ![ScreenShot](https://raw.github.com/alchimya/angular-dynamic-responsive-gridster/master/screenshots/layout_3_1.gif) ![ScreenShot](https://raw.github.com/alchimya/angular-dynamic-responsive-gridster/master/screenshots/layout_3_2.gif)