1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
-- ftd.color yellow: yellow
dark: yellow
-- ftd.color red: red
dark: red
-- ftd.column foo:
integer a:
boolean b: false
$on-click$: toggle $b
$on-click$: increment $a
--- ftd.integer:
value: $a
color if $b: $yellow
-- string current: hello
-- foo:
id: hello
a: 20
string some-text: whatever
$on-click$: $some-text = $current
--- ftd.text: $some-text
/-- ftd.text: $hello.some-text
color if $hello.b: red
-- ftd.row:
id: hello
boolean foo: false
$on-click$: toggle $foo
--- ftd.text: hello
color if $foo: $red