| 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 part of $LIBRARYNAME; | 5 part of $LIBRARYNAME; |
| 6 | 6 |
| 7 class _ChildrenElementList extends ListBase<Element> { | 7 class _ChildrenElementList extends ListBase<Element> { |
| 8 // Raw Element. | 8 // Raw Element. |
| 9 final Element _element; | 9 final Element _element; |
| 10 final HtmlCollection _childElements; | 10 final HtmlCollection _childElements; |
| (...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 859 DocumentFragment get content { | 859 DocumentFragment get content { |
| 860 _ensureTemplate(); | 860 _ensureTemplate(); |
| 861 return _templateContent; | 861 return _templateContent; |
| 862 } | 862 } |
| 863 | 863 |
| 864 /** | 864 /** |
| 865 * Creates an instance of the template. | 865 * Creates an instance of the template. |
| 866 * This is only supported if [isTemplate] is true. | 866 * This is only supported if [isTemplate] is true. |
| 867 */ | 867 */ |
| 868 @Experimental() | 868 @Experimental() |
| 869 DocumentFragment createInstance() { | 869 DocumentFragment createInstance(model, String syntax) { |
| 870 _ensureTemplate(); | 870 _ensureTemplate(); |
| 871 return TemplateElement.mdvPackage(this).createInstance(); | 871 return TemplateElement.mdvPackage(this).createInstance(model, syntax); |
| 872 } | 872 } |
| 873 | 873 |
| 874 /** | 874 /** |
| 875 * The data model which is inherited through the tree. | 875 * The data model which is inherited through the tree. |
| 876 * This is only supported if [isTemplate] is true. | 876 * This is only supported if [isTemplate] is true. |
| 877 */ | 877 */ |
| 878 @Experimental() | 878 @Experimental() |
| 879 get model => TemplateElement.mdvPackage(this).model; | 879 get model => TemplateElement.mdvPackage(this).model; |
| 880 | 880 |
| 881 @Experimental() | 881 @Experimental() |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1064 const ScrollAlignment._internal(this._value); | 1064 const ScrollAlignment._internal(this._value); |
| 1065 toString() => 'ScrollAlignment.$_value'; | 1065 toString() => 'ScrollAlignment.$_value'; |
| 1066 | 1066 |
| 1067 /// Attempt to align the element to the top of the scrollable area. | 1067 /// Attempt to align the element to the top of the scrollable area. |
| 1068 static const TOP = const ScrollAlignment._internal('TOP'); | 1068 static const TOP = const ScrollAlignment._internal('TOP'); |
| 1069 /// Attempt to center the element in the scrollable area. | 1069 /// Attempt to center the element in the scrollable area. |
| 1070 static const CENTER = const ScrollAlignment._internal('CENTER'); | 1070 static const CENTER = const ScrollAlignment._internal('CENTER'); |
| 1071 /// Attempt to align the element to the bottom of the scrollable area. | 1071 /// Attempt to align the element to the bottom of the scrollable area. |
| 1072 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 1072 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
| 1073 } | 1073 } |
| OLD | NEW |