vudash-widget-pluck

3.0.0 • Public • Published

vudash-widget-pluck

Uses Hoek to pluck values from JSON APIs and display them on a Vudash Dashboard

Usage

Simply include in your dashboard, and configure as required:

  {
    "widget": "vudash-widget-time",
    "options": {
      "url": "http://your.url/api/v1/something",
      "path": "some.nested.path",
      "description": "My Value"
    }
  }

Where url is the url where your API lives, path is the dot-path of the value you want, and description is the title which sits under the widget.

A dot-path is essentially a way of reaching a nested value, i.e for the JSON:

  {
    "a": {
      "b": {
        "c": 'myvalue'
      }
    }
  }

using a.b.c as the path would yield myvalue.

Readme

Keywords

none

Package Sidebar

Install

npm i vudash-widget-pluck

Weekly Downloads

2

Version

3.0.0

License

none

Last publish

Collaborators

  • antony