Giter VIP home page Giter VIP logo

angular-dynamic-responsive-gridster's Introduction

angular-dynamic-responsive-gridster

An AngularJs project with responsive gridster layout and dynamic json loading

#Installation

  • bower install

How to use

  • setup source code on your IDE
  • start index.html and try the example layouts

How to configure a new layout

  • 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...}
}
grid_item properties
name | type | description --------------| ----------------|------------------------------------------------------------------- col | number | The column the widget should start in. row | number | The row the widget should start in. size_x | number | The number of rows that the widget occupies. size_y | number | The number of columns that the widget occupies. class | string | The css class applied to the widget. content | string | The html content of the widget. isDirective | boolean | Set it to true if the content is an angular directive.
grid_options properties
name | type | description --------------| ----------------|------------------------------------------------------------------- cols | number | Total columns of widget. rows | number | Total rows of widget.
JSON structure example
{
    "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)

angular-dynamic-responsive-gridster's People

Contributors

alchimya avatar

Stargazers

 avatar  avatar

Watchers

 avatar

angular-dynamic-responsive-gridster's Issues

demo page

Hi,

May you run a demopage, that we can see the behavior?

thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.