Skip to content

arildwtv/mozaik-ext-value

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mozaïk value widgets

NPM version

Value widget for the Mozaïk dashboard framework.

Preview

value

Value Widget Configuration

Api Configuration

No API configuration is needed.

Dashboard Configuration

{
  // ...
  {
    type:               'value.value',
    title:              'Number of Likes',
    url:                'https://dl.dropboxusercontent.com/u/19253297/test.json',
    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
  }
}

Parameters

key required description
url yes The URL to fetch the value
title yes The widget title
prefix no Prefix of the value
postfix no Postfix of the value
lastUpdatedFormat no Format of the 'lastUpdated' value (default 'YYYY-MM-DDThh:mm:ssTZD')
lastUpdatedFromNow no Whether to display the 'lastUpdated' value in "from now" format (default true)
pathCurrent no   The JSON path to the 'current' value
pathLastUpdated no The JSON path to the 'lastUpdated' value
pathChangeRate no The JSON path to the 'changeRate' value

About

Mozaïk value plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published