eemp / mozaik-ext-table

Mozaik v2 extension to render table data
MIT License
2 stars 0 forks source link
extension mozaik table widget

mozaik-ext-table

Mozaik v2 extension to render table data given a filesystem path available to the Mozaik server or a network accessible url.

Setup

npm install --save mozaik-ext-table
  -
    extension:      table
    widget:         Table
    title:          Ongoing Projects
    fields:
      -
        Project:    '{project}'
      -
        Lead:       '{lead}'
      -
        Developers: '{devs}'
      -
        QA:         '{tester}'
    path:           data/ongoing-projects.json
    columns:        3
    rows:           2
    x:              1
    y:              1

Configuration

key required description
widget yes Table - only available widget
title yes Unless the lame default "Table" works for you
fields yes Array of per field column headers to corresponding field value formats
path no* File system path to table data accessible to the Mozaik server (supports JSON and CSV)
url no* URL under which JSON data is accessible

* Either path or url must be supplied

Changelog

Release 0.0.1

License

Module is MIT -licensed

Credit

The repo initially started as a fork of mozaik-ext-sheets. The initial release was updated to work with custom JSON or CSV data as part of Mozaik 2.