mozaik-ext-json2table

0.1.3 • Public • Published

Mozaïk Json2Table widgets

A widget for the Mozaïk dashboard framework that converts a JSON into a html table.

Preview

value

Json2Table Widget Configuration

Api Configuration

No API configuration is needed.

Json Format

{
	"table":[
		{
			"Name": "Louise",
			"Age": "27",
			"Colour": "Red"
			
		},
		{
			"Name": "Margaret",
			"Age": "23",
			"Colour": "Blue"
			
		},
		{
			"Name": "Lisa",
			"Age": "34",
			"Colour": "Yellow"
			
		}
	]
}

Running tests

To execute the tests, run the following command:

npm test

Working Dashboard Configuration Example

{
  type:               'json2table.table',
  title:              'Example:',
  url:                'https://dl.dropboxusercontent.com/s/mvvhaxwv832mihr/example.json?dl=0',
  columns: 1, rows: 4,
  x: 0, y: 0
}

Parameters

key required description
url yes The URL to fetch the json
title yes The widget title

Package Sidebar

Install

npm i mozaik-ext-json2table

Repository

github.com/

Homepage

github.com

Weekly Downloads

4

Version

0.1.3

License

MIT

Last publish

Collaborators

  • callumatpixelpin