Skip to content

pbse/JSON-to-Bootstrap-Table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JSON to Bootstrap Table

Convert JSON Data from URL/Data to Bootstrap table This light weight plugin uses Bootstrap CSS to convert a JSON data into a Bootstrap table.

###Demo

http://demo.prashantb.me/JsonToTable/

###How to use Create an Object of CreateTable and call its create method. CreateTable accepts various parameters. List of parameters are defined below.

###Code to be used -

<script src="jsonToTable.js"></script>
<script>
	  var dtbl = new createTable({
							  url:'example.json',
							  wrapper:".createTableJSON"
							  }).create();
</script>

###Parameters Available -

url:"",
data:"",
wrapper:"",
search:true,
tableClass:"table table-bordered table-hover"
  • URL - Get Request to a URL which returns a JSON Object.
  • Data - Optional - Can directly convert a passed JSON Data.
  • Search - To Enable/Disable Search in the Table

About

Convert JSON Data from URL/Data to Bootstrap table

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published