Notorious Preying Mantis
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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

install

npm i mozaik-ext-json2table

Downloadsweekly downloads

2

version

0.1.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability