| OLD | NEW |
| (Empty) |
| 1 <link rel="import" href="../../../../packages/polymer/polymer.html"> | |
| 2 <link rel="import" href="observatory_element.html"> | |
| 3 | |
| 4 <polymer-element name="curly-block" extends="observatory-element"> | |
| 5 <template> | |
| 6 <style> | |
| 7 .idle { | |
| 8 display: inline-block; | |
| 9 color: #0489c3; | |
| 10 cursor: pointer; | |
| 11 } | |
| 12 .busy { | |
| 13 display: inline-block; | |
| 14 color: white; | |
| 15 cursor: wait; | |
| 16 } | |
| 17 </style> | |
| 18 <template if="{{ expanded }}"> | |
| 19 <template if="{{ busy }}"> | |
| 20 {<div class="busy"> ⊟ </div> | |
| 21 <br> | |
| 22 <content></content> | |
| 23 } | |
| 24 </template> | |
| 25 <template if="{{ !busy }}"> | |
| 26 {<a on-click="{{ toggleExpand }}"><div class="idle"> ⊟&
nbsp; </div></a> | |
| 27 <br> | |
| 28 <content></content> | |
| 29 } | |
| 30 </template> | |
| 31 </template> | |
| 32 | |
| 33 <template if="{{ !expanded }}"> | |
| 34 <template if="{{ busy }}"> | |
| 35 {<div class="busy"> ⊞ </div>} | |
| 36 </template> | |
| 37 <template if="{{ !busy }}"> | |
| 38 {<a on-click="{{ toggleExpand }}"><div class="idle"> ⊞&
nbsp; </div></a>} | |
| 39 </template> | |
| 40 </template> | |
| 41 </template> | |
| 42 </polymer-element> | |
| 43 | |
| 44 <script type="application/dart" src="curly_block.dart"></script> | |
| OLD | NEW |