Skip to content

Sometimes your table data is complex and doesn't fit on a mobile screen, so break the table.

Notifications You must be signed in to change notification settings

operapreneur/breaktable-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proof of Concept

BreakTable JS

Sometimes your table data is complex and doesn't fit on a mobile screen, so break the table.

There are a number of different approaches and techniques to responsive data tables (ex: CSS-Tricks article), but in working with very complex and intricate designs I've thrown my hat in the game and came of with another alternative.

TODO:

  • do not allow <colgroup>
  • add rowspan logic
  • add scope= rowgroup && colgroup logic

BUGS

  • first column in <thead> must be scope=row

Basic Table rules

  1. Scope is only added to elements

Library Attributes

data-breaktables="popup|integer"

data-btcolumns="integer"

data-btclass="broken-table|string"

data-btidentifier="bt-[index]|inherit|string"

data-btid="integer"

About

Sometimes your table data is complex and doesn't fit on a mobile screen, so break the table.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published