Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
add svg example
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Apr 1, 2014
1 parent cb0fc60 commit 5772275
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core-iconset.html
Expand Up @@ -215,7 +215,7 @@
* @param {Number} scale (optional, defaults to 1) A scaling factor
* with which the icon can be magnified.
*/
applyAsBackground: function(element, icon, theme, scale) {
applyIcon: function(element, icon, theme, scale) {
var offset = this.getOffset(icon, theme);
scale = scale || 1;
if (element && offset) {
Expand Down
15 changes: 14 additions & 1 deletion demo.html
Expand Up @@ -29,6 +29,10 @@
icons="location place starta stopb bus car train walk">
</core-iconset>

<core-iconset id="svg-icons" src="../core-action-icons/action-icons.svg" width="24" iconSize="24"
icons="location place starta stopb bus car train walk">
</core-iconset>

<!--
Create an element that uses an iconset to display an icon.
By using iconset, the element can allow the set of available icons to be
Expand Down Expand Up @@ -96,6 +100,15 @@
<icon-demo icon="my-icons:5"></icon-demo>
<icon-demo icon="my-icons:6"></icon-demo>
<icon-demo icon="my-icons:7"></icon-demo>

<br>
<!-- Now create a bunch of icons using our iconset -->
<icon-demo icon="svg-icons:location"></icon-demo>
<icon-demo icon="svg-icons:place"></icon-demo>
<icon-demo icon="svg-icons:starta"></icon-demo>
<icon-demo icon="svg-icons:stopb"></icon-demo>
<icon-demo icon="svg-icons:bus"></icon-demo>
<icon-demo icon="svg-icons:car"></icon-demo>
<icon-demo icon="svg-icons:train"></icon-demo>
<icon-demo icon="svg-icons:walk"></icon-demo>
</body>
</html>

0 comments on commit 5772275

Please sign in to comment.