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