android13/external/chromium-trace/catapult/third_party/polymer/components/iron-jsonp-library
liiir1985 7f62dcda9f initial 2024-06-22 20:45:49 +08:00
..
demo initial 2024-06-22 20:45:49 +08:00
.bower.json initial 2024-06-22 20:45:49 +08:00
CONTRIBUTING.md initial 2024-06-22 20:45:49 +08:00
README.md initial 2024-06-22 20:45:49 +08:00
bower.json initial 2024-06-22 20:45:49 +08:00
hero.svg initial 2024-06-22 20:45:49 +08:00
index.html initial 2024-06-22 20:45:49 +08:00
iron-jsonp-library.html initial 2024-06-22 20:45:49 +08:00

README.md

Build status

Demo and API docs

<iron-jsonp-library>

Loads specified jsonp library.

Example:

<iron-jsonp-library
  library-url="https://apis.google.com/js/plusone.js?onload=%%callback%%"
  notify-event="api-load"
  library-loaded="{{loaded}}"></iron-jsonp-library>

Will emit 'api-load' event when loaded, and set 'loaded' to true

Implemented by Polymer.IronJsonpLibraryBehavior. Use it to create specific library loader elements.

Polymer.IronJsonpLibraryBehavior

Polymer.IronJsonpLibraryBehavior loads a jsonp library. Multiple components can request same library, only one copy will load.

Some libraries require a specific global function be defined. If this is the case, specify the callbackName property.

You should use an HTML Import to load library dependencies when possible instead of using this element.