Menu

Home

Jan Dvořák z Vozerovic

Table to divs
Table to divs is jQuery plugin used to convert table to div elements. Converting the table, we can ensure fixed cells widths and heights. Combining with StickElements project, we can separate table's heared that is fixated on the top of the screen, etc...

Plugin also considers user specific class names and style properties.

Plugin also considers simple rowspans and colspans.

TODO:
This plugin is not writen nicely - I was quite bussy...

  • write better parse of input data to consider multiple row(col)spans and nested tables
  • better padding, margin and border behaviour (use outerHeight, ...)
  • split huge methods to smaller ones, make code more legible

Methods:

   create: $(selector).tableToDivs(options);

Options:

   thead: <bool> true; true if convert header part of the table

   tbody: <bool> true; true if convert body part of the table

   tfoot: <bool> true; true if convert footer part of the table

   borderWidth: <int> 1; border width of the table</int></bool></bool></bool>

Project Admins:

Merica s.r.o.


MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.
Try Free →