OLD | NEW |
| (Empty) |
1 <link rel="import" href="../../../../packages/polymer/polymer.html"> | |
2 | |
3 <polymer-element name="eval-link"> | |
4 <template> | |
5 <style> | |
6 .idle { | |
7 color: #0489c3; | |
8 cursor: pointer; | |
9 } | |
10 .busy { | |
11 color: #aaa; | |
12 cursor: wait; | |
13 } | |
14 </style> | |
15 | |
16 <template if="{{ busy }}"> | |
17 <span class="busy">{{ label }}</span> | |
18 </template> | |
19 <template if="{{ !busy }}"> | |
20 <span class="idle"><a on-click="{{ evalNow }}">{{ label }}</a></span> | |
21 </template> | |
22 <template if="{{ error != null }}"> | |
23 = <span style="color:red">{{ error }}</span> | |
24 </template> | |
25 <template if="{{ error == null }}"> | |
26 <template if="{{ result != null }}"> | |
27 = <any-service-ref ref="{{ result }}"></any-service-ref> | |
28 </template> | |
29 </template> | |
30 </template> | |
31 </polymer-element> | |
32 | |
33 <script type="application/dart" src="eval_link.dart"></script> | |
OLD | NEW |