Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display records by list view / grid view

Check it out

Check the above url,

You can find the options like list view/ grid view option for displaying the records.

May I know is there any open source script for that, any jquery plugin can do that, please give suggestion. I want to make same kind of work in my site.

like image 642
Bharanikumar Avatar asked Mar 12 '11 07:03

Bharanikumar


1 Answers

You don't need a plugin ; simply use JS to change class of container ans CSS to change view depending of the class.

Working Fiddle to explain : http://jsfiddle.net/akarun/LJf9p/

note: the JS code can be optimize, Uhh, it's just sample !

like image 179
Akarun Avatar answered Oct 06 '22 01:10

Akarun