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

Side by Side Diff: lib/firebase_collection.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/firebase_auth.dart ('k') | lib/google_chart.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 `firebase_collection`. 3 /// Dart API for the polymer element `firebase_collection`.
4 @HtmlImport('firebase_collection_nodart.html') 4 @HtmlImport('firebase_collection_nodart.html')
5 library polymer_elements.lib.src.firebase_element.firebase_collection; 5 library polymer_elements.lib.src.firebase_element.firebase_collection;
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';
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 /// Specify a start record for the set of records reflected in the 121 /// Specify a start record for the set of records reflected in the
122 /// collection. 122 /// collection.
123 String get startAt => jsElement[r'startAt']; 123 String get startAt => jsElement[r'startAt'];
124 set startAt(String value) { jsElement[r'startAt'] = value; } 124 set startAt(String value) { jsElement[r'startAt'] = value; }
125 125
126 /// Add an item to the document referenced at `location`. A key associated 126 /// Add an item to the document referenced at `location`. A key associated
127 /// with the item will be created by Firebase, and can be accessed via the 127 /// with the item will be created by Firebase, and can be accessed via the
128 /// Firebase Query instance returned by this method. 128 /// Firebase Query instance returned by this method.
129 /// [data]: A value to add to the document. 129 /// [data]: A value to add to the document.
130 add(data) => 130 firebaseAdd(data) =>
131 jsElement.callMethod('add', [data]); 131 jsElement.callMethod('add', [data]);
132 132
133 /// Look up an item in the local `data` Array by key. 133 /// Look up an item in the local `data` Array by key.
134 /// [key]: The key associated with the item in the parent 134 /// [key]: The key associated with the item in the parent
135 /// document. 135 /// document.
136 getByKey(String key) => 136 getByKey(String key) =>
137 jsElement.callMethod('getByKey', [key]); 137 jsElement.callMethod('getByKey', [key]);
138 138
139 /// Remove an item from the document referenced at `location`. The item 139 /// Remove an item from the document referenced at `location`. The item
140 /// is assumed to be an identical reference to an item already in the 140 /// is assumed to be an identical reference to an item already in the
141 /// `data` Array. 141 /// `data` Array.
142 /// [data]: An identical reference to an item in `this.data`. 142 /// [data]: An identical reference to an item in `this.data`.
143 removeItem(data) => 143 firebaseRemove(data) =>
144 jsElement.callMethod('remove', [data]); 144 jsElement.callMethod('remove', [data]);
145 145
146 /// Remove an item from the document associated with `location` by key. 146 /// Remove an item from the document associated with `location` by key.
147 /// [key]: The key associated with the item in the document 147 /// [key]: The key associated with the item in the document
148 /// located at `location`. 148 /// located at `location`.
149 removeByKey(String key) => 149 removeByKey(String key) =>
150 jsElement.callMethod('removeByKey', [key]); 150 jsElement.callMethod('removeByKey', [key]);
151 } 151 }
OLDNEW
« no previous file with comments | « lib/firebase_auth.dart ('k') | lib/google_chart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698