Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: lib/paper_material.dart

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/paper_item.dart ('k') | lib/paper_progress.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // DO NOT EDIT: auto-generated with `pub run custom_element_apigen:update` 1 // DO NOT EDIT: auto-generated with `pub run custom_element_apigen:update`
2 2
3 /// Dart API for the polymer element `paper_material`. 3 /// Dart API for the polymer element `paper_material`.
4 @HtmlImport('paper_material_nodart.html') 4 @HtmlImport('paper_material_nodart.html')
5 library polymer_elements.lib.src.paper_material.paper_material; 5 library polymer_elements.lib.src.paper_material.paper_material;
6 6
7 import 'dart:html'; 7 import 'dart:html';
8 import 'dart:js' show JsArray, JsObject; 8 import 'dart:js' show JsArray, JsObject;
9 import 'package:web_components/web_components.dart'; 9 import 'package:web_components/web_components.dart';
10 import 'package:polymer_interop/polymer_interop.dart'; 10 import 'package:polymer_interop/polymer_interop.dart';
11 import 'shadow.dart'; 11 import 'shadow.dart';
12 12
13 /// Material design: [Cards](https://www.google.com/design/spec/components/cards .html)
14 ///
13 /// `paper-material` is a container that renders two shadows on top of each othe r to 15 /// `paper-material` is a container that renders two shadows on top of each othe r to
14 /// create the effect of a lifted piece of paper. 16 /// create the effect of a lifted piece of paper.
15 /// 17 ///
16 /// Example: 18 /// Example:
17 /// 19 ///
18 /// <paper-material elevation="1"> 20 /// <paper-material elevation="1">
19 /// ... content ... 21 /// ... content ...
20 /// </paper-material> 22 /// </paper-material>
21 @CustomElementProxy('paper-material') 23 @CustomElementProxy('paper-material')
22 class PaperMaterial extends HtmlElement with CustomElementProxyMixin, PolymerBas e { 24 class PaperMaterial extends HtmlElement with CustomElementProxyMixin, PolymerBas e {
23 PaperMaterial.created() : super.created(); 25 PaperMaterial.created() : super.created();
24 factory PaperMaterial() => new Element.tag('paper-material'); 26 factory PaperMaterial() => new Element.tag('paper-material');
25 27
26 /// Set this to true to animate the shadow when setting a new 28 /// Set this to true to animate the shadow when setting a new
27 /// `elevation` value. 29 /// `elevation` value.
28 bool get animated => jsElement[r'animated']; 30 bool get animated => jsElement[r'animated'];
29 set animated(bool value) { jsElement[r'animated'] = value; } 31 set animated(bool value) { jsElement[r'animated'] = value; }
30 32
31 /// The z-depth of this element, from 0-5. Setting to 0 will remove the 33 /// The z-depth of this element, from 0-5. Setting to 0 will remove the
32 /// shadow, and each increasing number greater than 0 will be "deeper" 34 /// shadow, and each increasing number greater than 0 will be "deeper"
33 /// than the last. 35 /// than the last.
34 num get elevation => jsElement[r'elevation']; 36 num get elevation => jsElement[r'elevation'];
35 set elevation(num value) { jsElement[r'elevation'] = value; } 37 set elevation(num value) { jsElement[r'elevation'] = value; }
36 } 38 }
OLDNEW
« no previous file with comments | « lib/paper_item.dart ('k') | lib/paper_progress.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698