-
Notifications
You must be signed in to change notification settings - Fork 0
client time
Emiel Mols edited this page Aug 12, 2015
·
1 revision
Time widgets.
Reactively render time-ago/time-till-event as Dom.text. timestamp should be an observable value, or regular function, returning a unix timestamp (no milliseconds). offsetTemplate can be either "default", "short" or "countdown".
Time = require 'time'
Dom = require 'dom'
Obs = require 'obs'
time = Obs.create(new Date()/1000)
Dom.div ->
Time.deltaText time
Dom.onTap !->
time.modify (v) -> v+120- [How it works](How it works)
- [Your first plugin](Your first plugin)
- Submitting and distributing your plugin
- Using the Developer Tools
- Example plugins on Github
-
API Reference
- Client
- [client plugin](client plugin)
- [client dom](client dom)
- [client obs](client obs)
- [client db](client db)
- [client server](client server)
- [client page](client page)
- [client ui](client ui)
- [client form](client form)
- [client icon](client icon)
- [client modal](client modal)
- [client photo](client photo)
- [client photoview](client photoview)
- [client time](client time)
- [client share](client share)
- [client map](client map)
- [client geoloc](client geoloc)
- Server
- [server event](server event)
- [server plugin](server plugin)
- [server http](server http)
- [server db](server db)
- [server photo](server photo)
- [server time](server time)
- Client
- Example UI elements