OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 library view_footer_element; | 5 library view_footer_element; |
6 | 6 |
7 import 'package:polymer/polymer.dart'; | 7 import 'dart:html'; |
8 import 'observatory_element.dart'; | 8 import 'package:observatory/src/elements/helpers/tag.dart'; |
9 | 9 |
10 @CustomTag('view-footer') | 10 class ViewFooterElement extends HtmlElement { |
11 class ViewFooterElement extends ObservatoryElement { | 11 static const tag = const Tag<ViewFooterElement>('view-footer'); |
| 12 |
| 13 factory ViewFooterElement() => document.createElement(tag.name); |
| 14 |
12 ViewFooterElement.created() : super.created(); | 15 ViewFooterElement.created() : super.created(); |
| 16 |
| 17 @override |
| 18 void attached() { super.attached(); render(); } |
| 19 |
| 20 void render() { |
| 21 children = [ |
| 22 new AnchorElement() |
| 23 ..href = 'https://www.dartlang.org/tools/observatory' |
| 24 ..text = 'View documentation', |
| 25 new AnchorElement() |
| 26 ..href = 'https://github.com/dart-lang/sdk/issues/new?title=Observator
y:&body=Observatory%20Feedback' |
| 27 ..text = 'File a bug report' |
| 28 ]; |
| 29 } |
13 } | 30 } |
OLD | NEW |