Quantcast
Viewing all articles
Browse latest Browse all 82127

Displaying a given table in "gallery" form

Hey guys,

I'm very new to DataTables and I'm trying to experiment with some different table views. One viewing mode is a traditional table (which is very simple and easy). Another view is a detail view, where I cram all the data from multiple rows into a single cell, and only display an image and the details of that image. This is a little hacky, but it works with all of DataTable's searching functions.

The third view is supposed to be a 6x3 grid of images, based on what is in the DataTable's search. What is the easiest way to get DataTables to display it in this way?

Here are some solutions I came up with:
1) Give up and use a different script to render a given list in the grid format, and add custom pagination/search boxes similar to DataTables.
2) Style the <table>, <tr>, or <td> elements to somehow draw a maximum of 18 rows, and have them display in the given grid positions.
3) Find a DataTables plugin that already has this style of view, or maybe write one myself.

Thanks for your time guys!

Viewing all articles
Browse latest Browse all 82127

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>