Skip to content

tekrat/eTable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

eTable

A single function to build a table based on a JSON object

Example Usage

document.write(
  eTab({
	header:["a", "b", "c"],
		rows:{
			row1:["1", "2", "3"],
			row2:["q", "w", "e"]
		}
	})
);

Function Parameter

function eTab(

  • JSON Data Table - Required
  • Table ID - Optional
  • Table Class - Optional
  • Header Class - Optional
  • Individual Cell Class - Optional

)

JSON Data Table Structure

{
header:[Individual Column Headers],
	rows:{ // Rows object
		row1:["1", "2", "3"], // Individual rows, the row names can
		row2:["q", "w", "e"]  //   be anything as long as they unique
	}
}

Disclaimer

This code is provided without warranty. While I strive to maintain backwards compatibility with previous versions, the code is still under active development. As this is the case, some revisions may break compatibility with earlier versions of the library. Please keep this in mind when using eTable.

Copyright and Licensing

Copyright (c) 2012 Ervin Kosch, released under the GPL 3 license

About

A single JavaScript function to build a table based on a JSON object

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published