Preview: ngResponsiveTables - Resize the screen to see how it works
Warning: This jquery plugin requires CSS3 in order to work properly!*
This jQuery plugin converts regular table view into user friendly table for mobile devices.
Default options:
$(function(){
$('.ng-table').ngResponsiveTables({
smallPaddingCharNo: 13,
mediumPaddingCharNo: 18,
largePaddingCharNo: 30
});
});
- smallPaddingCharNo - Set the max number of characters inside the current table cell, and add the 'small-padding' class on the current td (if the length of the characters is smaller than this number)
- mediumPaddingCharNo - Set the max number of characters inside the current table cell, and add the 'medium-padding' class on the current td (if the length of the characters is smaller than this number)
- largePaddingCharNo - Set the max number of characters inside the current table cell, and add the 'large-padding' class on the current td (if the length of the characters is smaller than this number)
All paddings must be declared in ng_responsive_tables.css CSS file!
Idea for this project came from CSS Tricks
Tomislav Matijević