Skip to content

JQuery plugin for transforming data structure tables into HTML tables.

Notifications You must be signed in to change notification settings

johnnulogy/jquery-tableize

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Demo

Look at the source. Not difficult. Here's the demo.

HowTo

  // data table (blog posts, for example)
  var data = [
    [ "22", 
      "first post", 
      "<p>This is the first post.</p>"
    ],
    [ "23", 
      "second post", 
      "<p>This is the second post.</p>"
    ],
    [ "24", 
      "fourth post", 
      "<p>This is the fourth post.</p>"
    ],
    [ "25", 
      "fifth post", 
      "<p>This is the fifth post.</p>"
    ]
  ];

  // create an HTML table, append it to a container <div>
  $(".container").append(
    $(data).tableize()
      .addClass("properties")
      .thead(["id","title","body"])
      .tfoot(["this","is","easy"])
      .talign(["left","right","left"])
      .twidth([100,200,400])
      .tcaption("My Blog Posts")
  );

About

JQuery plugin for transforming data structure tables into HTML tables.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 64.4%
  • JavaScript 35.6%