A jquery plugin to organize the Grids and shuffle the grids automatically based on the height and width of the container.
It has different layouts that we can use to organize the grids in the way we want. Also enables us to extend the existing layouts extensively to suite our needs.
It allows us to filter the grids based on the properties of grid. eg: "All employees, Male Employees, Female Employees"
We can also order the grids based on priorities. From the above example, we can order employees based on their age( Male Employees with higher age).
Setting up the plugin is real simple. Refer the site given below
[Jquery Isotpe (Jquery Isotope)]
There is no need for me to give the snippets, as they have very good documentation. However, I would like to share a code snippet that we have added in one of our project to suite our needs.
We enhanced one of the snippet given on jsfiddle:
[Adjusts grid without empty spaces- 2 x 2 (jsfiddle 2 x 2 layout)]
[Enhanced jsfiddle to support 3 x 3 without empty spaces(3 x 3)]
This two fiddles will give you an idea of how to order the grids based on index( Position of the element). So you can change the index based on attributes to give higher index.
Initially I was very confused about ordering grids. I hope fiddles will help you,If not, just drop a comment.