Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including mozaik-ext-value with all npm packages installed. Try it out:

require("mozaik/package.json"); // mozaik is a peer dependency. require("react/package.json"); // react is a peer dependency. var mozaikExtValue = require("mozaik-ext-value")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

mozaik-ext-value v0.1.1

Mozaik value widgets

Mozaïk value widgets

NPM version

Value widget for the Mozaïk dashboard framework.



Value Widget Configuration

Api Configuration

No API configuration is needed.

Dashboard Configuration

  // ...
    type:               'value.value',
    title:              'Number of Likes',
    url:                '',
    pathCurrent:        '$.current', /* optional */
    pathLastUpdated:    '$.lastUpdated', /* optional */
    pathChangeRate:     '$.changeRate', /* optional */
    lastUpdatedFormat:  'YYYY-MM-DDThh:mm:ssTZD', /* optional */
    lastUpdatedFromNow: true, /* optional */
    prefix:             '', /* optional */
    postfix:            ' likes', /* optional */
    columns: 2, rows: 1,
    x: 1, y: 0


urlyesThe URL to fetch the value
titleyesThe widget title
prefixnoPrefix of the value
postfixnoPostfix of the value
lastUpdatedFormatnoFormat of the 'lastUpdated' value (default 'YYYY-MM-DDThh:mm:ssTZD')
lastUpdatedFromNownoWhether to display the 'lastUpdated' value in "from now" format (default true)
pathCurrentnoThe JSON path to the 'current' value
pathLastUpdatednoThe JSON path to the 'lastUpdated' value
pathChangeRatenoThe JSON path to the 'changeRate' value
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free