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

Unified Diff: lib/iron_form.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, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/iron_autogrow_textarea.dart ('k') | lib/iron_form_element_behavior.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/iron_form.dart
diff --git a/lib/iron_form.dart b/lib/iron_form.dart
index 05b1209e09fcee1ae871b47d6da150e7709babdf..387a76792570e80c8797dd5af685082a27eaec8c 100644
--- a/lib/iron_form.dart
+++ b/lib/iron_form.dart
@@ -53,6 +53,13 @@ class IronForm extends FormElement with CustomElementProxyMixin, PolymerBase {
bool get disableNativeValidationUi => jsElement[r'disableNativeValidationUi'];
set disableNativeValidationUi(bool value) { jsElement[r'disableNativeValidationUi'] = value; }
+ /// HTTP request headers to send
+ ///
+ /// Note: setting a `Content-Type` header here will override the value
+ /// specified by the `contentType` property of this element.
+ get headers => jsElement[r'headers'];
+ set headers(value) { jsElement[r'headers'] = (value is Map || (value is Iterable && value is! JsArray)) ? new JsObject.jsify(value) : value;}
+
/// Set the withCredentials flag when sending data.
bool get withCredentials => jsElement[r'withCredentials'];
set withCredentials(bool value) { jsElement[r'withCredentials'] = value; }
« no previous file with comments | « lib/iron_autogrow_textarea.dart ('k') | lib/iron_form_element_behavior.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698