update plugin page

This commit is contained in:
Luke Pulverenti 2015-08-14 21:10:07 -04:00
parent 88a1dde4fb
commit 50ae4035c5
7 changed files with 20 additions and 19 deletions

View file

@ -32,17 +32,16 @@ Example setting size to 32px x 32px:
</style>
The iron elements include several sets of icons.
To use the default set of icons, import `iron-icons.html` and use the `icon` attribute to specify an icon:
To use the default set of icons, import `iron-icons.html` and use the `icon` attribute to specify an icon:
&lt;!-- import default iconset and iron-icon --&gt;
<link rel="import" href="/components/iron-icons/iron-icons.html">
<iron-icon icon="menu"></iron-icon>
To use a different built-in set of icons, import `iron-icons/<iconset>-icons.html`, and
specify the icon as `<iconset>:<icon>`. For example:
To use a different built-in set of icons, import the specific `iron-icons/<iconset>-icons.html`, and
specify the icon as `<iconset>:<icon>`. For example, to use a communication icon, you would
use:
&lt;!-- import communication iconset and iron-icon --&gt;
<link rel="import" href="/components/iron-icons/communication-icons.html">
<iron-icon icon="communication:email"></iron-icon>
@ -150,6 +149,7 @@ Custom property | Description | Default
return this.icon || !this.src;
},
/** @suppress {visibility} */
_updateIcon: function() {
if (this._usesIconset()) {
if (this._iconsetName) {
@ -166,6 +166,7 @@ Custom property | Description | Default
this._img = document.createElement('img');
this._img.style.width = '100%';
this._img.style.height = '100%';
this._img.draggable = false;
}
this._img.src = this.src;
Polymer.dom(this.root).appendChild(this._img);