OLD | NEW |
(Empty) | |
| 1 { |
| 2 "project": { |
| 3 "name": "Docs", |
| 4 "description": "Docs" |
| 5 }, |
| 6 "files": { |
| 7 "..\\..\\polymer-ajax\\polymer-ajax.html": { |
| 8 "name": "..\\..\\polymer-ajax\\polymer-ajax.html", |
| 9 "modules": { |
| 10 "Polymer Elements": 1 |
| 11 }, |
| 12 "classes": { |
| 13 "polymer-ajax": 1 |
| 14 }, |
| 15 "fors": {}, |
| 16 "namespaces": {} |
| 17 }, |
| 18 "..\\..\\polymer-ajax\\polymer-xhr.html": { |
| 19 "name": "..\\..\\polymer-ajax\\polymer-xhr.html", |
| 20 "modules": {}, |
| 21 "classes": { |
| 22 "polymer-xhr": 1 |
| 23 }, |
| 24 "fors": {}, |
| 25 "namespaces": {} |
| 26 } |
| 27 }, |
| 28 "modules": { |
| 29 "Polymer Elements": { |
| 30 "name": "Polymer Elements", |
| 31 "submodules": {}, |
| 32 "classes": { |
| 33 "polymer-ajax": 1, |
| 34 "polymer-xhr": 1 |
| 35 }, |
| 36 "fors": {}, |
| 37 "namespaces": {}, |
| 38 "tag": "module", |
| 39 "file": "..\\..\\polymer-ajax\\polymer-xhr.html", |
| 40 "line": 10 |
| 41 } |
| 42 }, |
| 43 "classes": { |
| 44 "polymer-ajax": { |
| 45 "name": "polymer-ajax", |
| 46 "shortname": "polymer-ajax", |
| 47 "classitems": [], |
| 48 "plugins": [], |
| 49 "extensions": [], |
| 50 "plugin_for": [], |
| 51 "extension_for": [], |
| 52 "module": "Polymer Elements", |
| 53 "namespace": "", |
| 54 "file": "..\\..\\polymer-ajax\\polymer-ajax.html", |
| 55 "line": 10, |
| 56 "description": "polymer-ajax can be used to perform XMLHttpRequests.
\n\nExample:\n\n <polymer-ajax auto url=\"http://gdata.youtube.com/feeds/api/
videos/\" \n params='{\"alt\":\"json\", \"q\":\"chrome\"}'\n handl
eAs=\"json\"\n on-polymer-response=\"{{handleResponse}}\">\n </polymer
-ajax>" |
| 57 }, |
| 58 "polymer-xhr": { |
| 59 "name": "polymer-xhr", |
| 60 "shortname": "polymer-xhr", |
| 61 "classitems": [], |
| 62 "plugins": [], |
| 63 "extensions": [], |
| 64 "plugin_for": [], |
| 65 "extension_for": [], |
| 66 "module": "Polymer Elements", |
| 67 "namespace": "", |
| 68 "file": "..\\..\\polymer-ajax\\polymer-xhr.html", |
| 69 "line": 10, |
| 70 "description": "polymer-xhr can be used to perform XMLHttpRequests.\
n\nExample:\n\n <polymer-xhr id=\"xhr\"></polymer-xhr>\n ...\n this.$.x
hr.request({url: url, params: params, callback: callback});" |
| 71 } |
| 72 }, |
| 73 "classitems": [ |
| 74 { |
| 75 "file": "..\\..\\polymer-ajax\\polymer-ajax.html", |
| 76 "line": 23, |
| 77 "description": "Fired when a response is received.", |
| 78 "itemtype": "event", |
| 79 "name": "polymer-response", |
| 80 "class": "polymer-ajax", |
| 81 "module": "Polymer Elements" |
| 82 }, |
| 83 { |
| 84 "file": "..\\..\\polymer-ajax\\polymer-ajax.html", |
| 85 "line": 28, |
| 86 "description": "Fired when an error is received.", |
| 87 "itemtype": "event", |
| 88 "name": "polymer-error", |
| 89 "class": "polymer-ajax", |
| 90 "module": "Polymer Elements" |
| 91 }, |
| 92 { |
| 93 "file": "..\\..\\polymer-ajax\\polymer-ajax.html", |
| 94 "line": 33, |
| 95 "description": "Fired whenever a response or an error is received.", |
| 96 "itemtype": "event", |
| 97 "name": "polymer-complete", |
| 98 "class": "polymer-ajax", |
| 99 "module": "Polymer Elements" |
| 100 }, |
| 101 { |
| 102 "file": "..\\..\\polymer-ajax\\polymer-ajax.html", |
| 103 "line": 45, |
| 104 "description": "The URL target of the request.", |
| 105 "itemtype": "attribute", |
| 106 "name": "url", |
| 107 "type": "string", |
| 108 "default": "''", |
| 109 "class": "polymer-ajax", |
| 110 "module": "Polymer Elements" |
| 111 }, |
| 112 { |
| 113 "file": "..\\..\\polymer-ajax\\polymer-ajax.html", |
| 114 "line": 53, |
| 115 "description": "Specifies what data to store in the 'response' prope
rty, and\nto deliver as 'event.response' in 'response' events.\n\nOne of:\n\n
`text`: uses XHR.responseText\n \n `xml`: uses XHR.responseXML\n \n `jso
n`: uses XHR.responseText parsed as JSON", |
| 116 "itemtype": "attribute", |
| 117 "name": "handleAs", |
| 118 "type": "string", |
| 119 "default": "'text'", |
| 120 "class": "polymer-ajax", |
| 121 "module": "Polymer Elements" |
| 122 }, |
| 123 { |
| 124 "file": "..\\..\\polymer-ajax\\polymer-ajax.html", |
| 125 "line": 70, |
| 126 "description": "If true, automatically performs an Ajax request when
either url or params has changed.", |
| 127 "itemtype": "attribute", |
| 128 "name": "auto", |
| 129 "type": "boolean", |
| 130 "default": "false", |
| 131 "class": "polymer-ajax", |
| 132 "module": "Polymer Elements" |
| 133 }, |
| 134 { |
| 135 "file": "..\\..\\polymer-ajax\\polymer-ajax.html", |
| 136 "line": 78, |
| 137 "description": "Parameters to send to the specified URL, as JSON.", |
| 138 "itemtype": "attribute", |
| 139 "name": "params", |
| 140 "type": "string (JSON)", |
| 141 "default": "''", |
| 142 "class": "polymer-ajax", |
| 143 "module": "Polymer Elements" |
| 144 }, |
| 145 { |
| 146 "file": "..\\..\\polymer-ajax\\polymer-ajax.html", |
| 147 "line": 86, |
| 148 "description": "Returns the response object.", |
| 149 "itemtype": "attribute", |
| 150 "name": "response", |
| 151 "type": "Object", |
| 152 "default": "null", |
| 153 "class": "polymer-ajax", |
| 154 "module": "Polymer Elements" |
| 155 }, |
| 156 { |
| 157 "file": "..\\..\\polymer-ajax\\polymer-ajax.html", |
| 158 "line": 94, |
| 159 "description": "The HTTP method to use such as 'GET', 'POST', 'PUT',
'DELETE'.\nDefault is 'GET'.", |
| 160 "itemtype": "attribute", |
| 161 "name": "method", |
| 162 "type": "string", |
| 163 "default": "''", |
| 164 "class": "polymer-ajax", |
| 165 "module": "Polymer Elements" |
| 166 }, |
| 167 { |
| 168 "file": "..\\..\\polymer-ajax\\polymer-ajax.html", |
| 169 "line": 172, |
| 170 "description": "Performs an Ajax request to the url specified.", |
| 171 "itemtype": "method", |
| 172 "name": "go", |
| 173 "class": "polymer-ajax", |
| 174 "module": "Polymer Elements" |
| 175 }, |
| 176 { |
| 177 "file": "..\\..\\polymer-ajax\\polymer-xhr.html", |
| 178 "line": 59, |
| 179 "description": "Sends a HTTP request to the server and returns the X
HR object.", |
| 180 "itemtype": "method", |
| 181 "name": "request", |
| 182 "params": [ |
| 183 { |
| 184 "name": "inOptions", |
| 185 "description": "", |
| 186 "type": "Object", |
| 187 "props": [ |
| 188 { |
| 189 "name": "url", |
| 190 "description": "The url to which the request is sent
.", |
| 191 "type": "String" |
| 192 }, |
| 193 { |
| 194 "name": "method", |
| 195 "description": "The HTTP method to use, default is G
ET.", |
| 196 "type": "String" |
| 197 }, |
| 198 { |
| 199 "name": "sync", |
| 200 "description": "By default, all requests are sent as
ynchronously.\n To send synchronous requests, set to true.", |
| 201 "type": "Boolean" |
| 202 }, |
| 203 { |
| 204 "name": "params", |
| 205 "description": "Data to be sent to the server.", |
| 206 "type": "Object" |
| 207 }, |
| 208 { |
| 209 "name": "body", |
| 210 "description": "The content for the request body for
POST method.", |
| 211 "type": "Object" |
| 212 }, |
| 213 { |
| 214 "name": "headers", |
| 215 "description": "HTTP request headers.", |
| 216 "type": "Object" |
| 217 }, |
| 218 { |
| 219 "name": "responseType", |
| 220 "description": "The response type. Default is 'text'
.", |
| 221 "type": "String" |
| 222 }, |
| 223 { |
| 224 "name": "callback", |
| 225 "description": "Called when request is completed.", |
| 226 "type": "Object" |
| 227 } |
| 228 ] |
| 229 } |
| 230 ], |
| 231 "return": { |
| 232 "description": "XHR object.", |
| 233 "type": "Object" |
| 234 }, |
| 235 "class": "polymer-xhr", |
| 236 "module": "Polymer Elements" |
| 237 } |
| 238 ], |
| 239 "warnings": [ |
| 240 { |
| 241 "message": "replacing incorrect tag: returns with return", |
| 242 "line": " ..\\..\\polymer-ajax\\polymer-xhr.html:59" |
| 243 } |
| 244 ] |
| 245 } |
OLD | NEW |