Convert JSON Data from URL/Data to Bootstrap table
Branch: master
Clone or download
Latest commit 857ff4b Apr 27, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example Update jsonToTable.js Apr 27, 2016
resource Update jsonToTable.js Apr 27, 2016
.gitattributes 💥🐫 Added .gitattributes Mar 27, 2016
README.md Update README.md Mar 30, 2016

README.md

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