OLD | NEW |
1 <link rel="import" href="../../../../packages/polymer/polymer.html"> | 1 <link rel="import" href="../../../../packages/polymer/polymer.html"> |
2 | |
3 <link rel="import" href="service_ref.html"> | 2 <link rel="import" href="service_ref.html"> |
4 | 3 |
5 <polymer-element name="class-ref"> | 4 <polymer-element name="class-ref-as-value"> |
6 <template> | 5 <template> |
7 <link rel="stylesheet" href="css/shared.css"> | 6 <link rel="stylesheet" href="css/shared.css"> |
8 <style> | 7 <style> |
9 .indented { | 8 .indented { |
10 margin-left: 1.5em; | 9 margin-left: 1.5em; |
11 font: 400 14px 'Montserrat', sans-serif; | 10 font: 400 14px 'Montserrat', sans-serif; |
12 line-height: 150%; | 11 line-height: 150%; |
13 } | 12 } |
14 </style><!-- | 13 </style><!-- |
15 --><a on-click="{{ goto }}" _href="{{ url }}">{{ ref.name }}</a><!-- | 14 --><class-ref ref="{{ ref }}"></class-ref><!-- |
16 --><template if="{{ asValue }}"> | 15 --><curly-block callback="{{ expander() }}" expandKey="{{ expandKey }}"> |
17 <curly-block callback="{{ expander() }}" expandKey="{{ expandKey }}"> | |
18 <div class="indented"> | 16 <div class="indented"> |
19 <template repeat="{{ field in ref.fields }}"> | 17 <template repeat="{{ field in ref.fields }}"> |
20 <template if="{{ field.isStatic }}"> | 18 <template if="{{ field.isStatic }}"> |
21 {{ field.name }} : | 19 {{ field.name }} : |
22 <any-service-ref ref="{{ field.staticValue }}" | 20 <any-service-ref ref="{{ field.staticValue }}" |
23 expandKey="{{ makeExpandKey(field.name) }}"> | 21 expandKey="{{ makeExpandKey(field.name) }}"> |
24 </any-service-ref><br> | 22 </any-service-ref><br> |
25 </template> | 23 </template> |
26 </template> | 24 </template> |
27 </div> | 25 </div> |
28 </curly-block> | 26 </curly-block><!-- |
29 </template><!-- | |
30 --></template> | 27 --></template> |
31 </polymer-element> | 28 </polymer-element> |
32 | 29 |
33 <script type="application/dart" src="class_ref.dart"></script> | 30 <script type="application/dart" src="class_ref_as_value.dart"></script> |
OLD | NEW |