Skip to content

This jQuery plugin converts regular table view into user friendly table for mobile devices.

Notifications You must be signed in to change notification settings

alexanderussell/jquery.ngResponsiveTables

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Preview: ngResponsiveTables - Resize the screen to see how it works

Warning: This jquery plugin requires CSS3 in order to work properly!*

ngResponsiveTables

This jQuery plugin converts regular table view into user friendly table for mobile devices.

Usage

Default options:

$(function(){
  $('.ng-table').ngResponsiveTables({
    smallPaddingCharNo: 13,
    mediumPaddingCharNo: 18,
    largePaddingCharNo: 30
  });
});

Options

  • 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)

WARNING

All paddings must be declared in ng_responsive_tables.css CSS file!

Idea

Idea for this project came from CSS Tricks

Author

Tomislav Matijević

About

This jQuery plugin converts regular table view into user friendly table for mobile devices.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 56.0%
  • JavaScript 29.4%
  • CSS 14.6%