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

Unified Diff: third_party/polymer/components/iron-ajax/README.md

Issue 2906483004: [pinpoint] Add iron-form and paper-checkbox to polymer components. (Closed)
Patch Set: Created 3 years, 7 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
Index: third_party/polymer/components/iron-ajax/README.md
diff --git a/third_party/polymer/components/iron-ajax/README.md b/third_party/polymer/components/iron-ajax/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..d0ee426c11a981b21572c88d6c43128c2b386db0
--- /dev/null
+++ b/third_party/polymer/components/iron-ajax/README.md
@@ -0,0 +1,56 @@
+
+<!---
+
+This README is automatically generated from the comments in these files:
+iron-ajax.html iron-request.html
+
+Edit those files, and our readme bot will duplicate them over here!
+Edit this file, and the bot will squash your changes :)
+
+The bot does some handling of markdown. Please file a bug if it does the wrong
+thing! https://github.com/PolymerLabs/tedium/issues
+
+-->
+
+[![Build status](https://travis-ci.org/PolymerElements/iron-ajax.svg?branch=master)](https://travis-ci.org/PolymerElements/iron-ajax)
+
+_[Demo and API docs](https://elements.polymer-project.org/elements/iron-ajax)_
+
+
+## &lt;iron-ajax&gt;
+
+The `iron-ajax` element exposes network request functionality.
+
+```html
+<iron-ajax
+ auto
+ url="https://www.googleapis.com/youtube/v3/search"
+ params='{"part":"snippet", "q":"polymer", "key": "YOUTUBE_API_KEY", "type": "video"}'
+ handle-as="json"
+ on-response="handleResponse"
+ debounce-duration="300"></iron-ajax>
+```
+
+With `auto` set to `true`, the element performs a request whenever
+its `url`, `params` or `body` properties are changed. Automatically generated
+requests will be debounced in the case that multiple attributes are changed
+sequentially.
+
+Note: The `params` attribute must be double quoted JSON.
+
+You can trigger a request explicitly by calling `generateRequest` on the
+element.
+
+
+
+## &lt;iron-request&gt;
+
+iron-request can be used to perform XMLHttpRequests.
+
+```html
+<iron-request id="xhr"></iron-request>
+...
+this.$.xhr.send({url: url, body: params});
+```
+
+
« no previous file with comments | « third_party/polymer/components/iron-ajax/CONTRIBUTING.md ('k') | third_party/polymer/components/iron-ajax/bower.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698