0.0.1 • Published 7 years ago

mozaik-ext-bitbucket v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

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',
    rowValue:        '$.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

keyrequireddescription
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)
rowValueno  The JSON path to the 'current' value
pathLastUpdatednoThe JSON path to the 'lastUpdated' value
pathChangeRatenoThe JSON path to the 'changeRate' value