OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * This library exports all of the commonly used functions and types for | 6 * This library exports all of the commonly used functions and types for |
7 * building UI's. It is equivalent to the following imports: | 7 * building UI's. It is equivalent to the following imports: |
8 * | 8 * |
9 * import 'package:web_ui/observe.dart'; | 9 * import 'package:web_ui/observe.dart'; |
10 * import 'package:web_ui/safe_html.dart'; | 10 * import 'package:web_ui/safe_html.dart'; |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 get model => host.model; | 127 get model => host.model; |
128 | 128 |
129 void set model(newModel) { | 129 void set model(newModel) { |
130 host.model = newModel; | 130 host.model = newModel; |
131 } | 131 } |
132 | 132 |
133 get templateInstance => host.templateInstance; | 133 get templateInstance => host.templateInstance; |
134 get isTemplate => host.isTemplate; | 134 get isTemplate => host.isTemplate; |
135 get ref => host.ref; | 135 get ref => host.ref; |
136 get content => host.content; | 136 get content => host.content; |
137 DocumentFragment createInstance() => host.createInstance(); | 137 DocumentFragment createInstance(model, String syntax) => |
| 138 host.createInstance(model, syntax); |
138 void bind(String name, model, String path) => host.bind(name, model, path); | 139 void bind(String name, model, String path) => host.bind(name, model, path); |
139 void unbind(String name) => host.unbind(name); | 140 void unbind(String name) => host.unbind(name); |
140 void unbindAll() => host.unbindAll(); | 141 void unbindAll() => host.unbindAll(); |
141 | 142 |
142 | 143 |
143 /** | 144 /** |
144 * **Note**: This is an implementation helper and should not need to be called | 145 * **Note**: This is an implementation helper and should not need to be called |
145 * from your code. | 146 * from your code. |
146 * | 147 * |
147 * If [ShadowRoot.supported] or [useShadowDom] is false, this distributes | 148 * If [ShadowRoot.supported] or [useShadowDom] is false, this distributes |
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 } | 759 } |
759 | 760 |
760 /** | 761 /** |
761 * Set this to true to use native Shadow DOM if it is supported. | 762 * Set this to true to use native Shadow DOM if it is supported. |
762 * Note that this will change behavior of [WebComponent] APIs for tree | 763 * Note that this will change behavior of [WebComponent] APIs for tree |
763 * traversal. | 764 * traversal. |
764 */ | 765 */ |
765 bool useShadowDom = false; | 766 bool useShadowDom = false; |
766 | 767 |
767 bool get _realShadowRoot => useShadowDom && ShadowRoot.supported; | 768 bool get _realShadowRoot => useShadowDom && ShadowRoot.supported; |
OLD | NEW |