@tlake/mozaik-ext-time

1.1.1 • Public • Published

Mozaïk time widgets

License Travis CI NPM version Dependencies Coverage Status widget count

Time — Clock

Show analog clock from local or another timezone.

clock

parameters

key required description
title no Title of the widget. Prefix it with :: to format with Moment.
timezone no  Name of the timezone, like America/Los_Angeles. See http://momentjs.com/timezone/ for possible values. Defaults to local time.
info no Free textual value to show within clock. Special values are: timezone, date, time.
sunRise no Local time when sun rises (used for day/night indicator). Defaults to 6:00.
sunSet no Local time when sun sets (used for day/night indicator). Defaults to 18:00.

usage

{
  type: 'time.clock',
  info: 'date',
  columns: 1, rows: 1, x: 0, y: 0
},
{
  type: 'time.clock',
  timezone: 'America/Los_Angeles',
  info: 'timezone',
  sunRise: '6:30',
  sunSet: '17:43',
  columns: 1, rows: 1, x: 1, y: 0
},
{
  type: 'time.clock',
  info: 'Time is money!',
  columns: 1, rows: 1, x: 2, y: 0
}

Dependencies (8)

Dev Dependencies (9)

Package Sidebar

Install

npm i @tlake/mozaik-ext-time

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

11.7 kB

Total Files

9

Last publish

Collaborators

  • tlake