Name: lucify-updated-time
Owner: Lucify
Description: null
Created: 2016-03-31 22:12:04.0
Updated: 2016-03-31 22:12:26.0
Pushed: 2016-05-11 11:48:39.0
Homepage: null
Size: 6
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
lucify-updated-time
This is a simple React component designed for showing an update time for an embedded visualisation, using metadata fetched from an URL.
Due to its general nature it might be useful also in some other usage scenarios.
metaDataUrl
: URL to json file with a field stampUpdated
, that contains an unix timestamp reflecting when a resource has been last updated (required)prefix
: Markup to display before the human friendly date/time (optional, defaults to Updated
)suffix
: Markup to display after the human-friendly date/time (optional, defaults to null
)format
: Function that converts a Date to (optional, defaults to a function formatting dates as e.g. 31 March 2016
)MIT