UNPKG
glances-app
Version:
latest (2.1.1)
2.1.1
2.1.0
2.0.0
2.0.0-rc.3
2.0.0-rc.2
2.0.0-rc.1
2.0.0-rc.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
A heads-up dashboard for displaying thing-statuses
github.com/nicinabox/glances
nicinabox/glances
glances-app
/
tiles
/
example.js
17 lines
(14 loc)
•
271 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
var
currentValue =
0
module
.
exports
= {
state
: {
title
:
'Example'
,
value
: currentValue },
schedule
(
$, options
) { $.
every
(
'2 sec'
,
() =>
{
return
$.
emitChange
(
Object
.
assign
({},
this
.
tile
, {
value
: currentValue +=
1
})) }) } }