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

Commit

Permalink
Bowager-style discovery experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott J. Miles committed Oct 31, 2013
1 parent 386ed18 commit 472b1ba
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions discover.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<!doctype html>
<html>
<head>
<title>More Elements</title>
<style>
body {
font-family: "Helvetica Neue", Arial, Roboto, sans-serif;
}
</style>
<!--<script src="../platform/platform.js"></script>-->
<script src="../polymer/polymer.js"></script>
<link rel="import" href="../polymer-ui-elements/polymer-ui-icon/polymer-ui-icon.html">
<link rel="import" href="../designer-elements/x-meta/x-meta.html">
<link rel="import" href="elements.html">
<link rel="import" href="metadata.html">
</head>
<body>
<h2>More Elements</h2>
<h3>Get 'Em All</h3>
<a href="http://localhost:3003/bower?polymer-ui-elements=https%3A//github.com/sjmiles/more-elements.git">Bowager Install</a>
<br><br>
<h3>Individually Wrapped</h3>

<elt-list></elt-list>

<polymer-element name="meta-archetype" attributes="meta">
<template></template>
<script>
Polymer('meta-archetype', {
meta: null,
metaChanged: function () {
if (this.meta && this.meta.archetype) {
this.shadowRoot.appendChild(this.meta.archetype.content.cloneNode(true));
}
}
});
</script>
</polymer-element>

<polymer-element name="elt-list">
<template>
<x-meta id="meta" list="{{list}}"></x-meta>
<template repeat="{{list}}">
<div style="border: 1px dotted gray; padding: 8px; margin-bottom: 4px;">
<h4 style="margin-top: 0; line-height: 36px;">{{id}}<a href="http://localhost:3003/bower?{{id}}=https%3A//github.com/sjmiles/{{id}}.git"><polymer-ui-icon icon="shortcut" style="margin: 0 0 8px 8px;"></polymer-ui-icon></a></h4>
<meta-archetype meta="{{}}" style="display:block;"></meta-archetype>
<br>
<a href="{{id}}">Test Page</a>
<!--<br>
<a href="http://localhost:3003/bower?{{id}}=https%3A//github.com/sjmiles/{{id}}.git">Bowager Install</a>-->
</div>
</template>
</template>
<script>
Polymer('elt-list', {
ready: function () {
console.dir(this.$.meta.list);
}
});
</script>
</polymer-element>
</body>
</html>

0 comments on commit 472b1ba

Please sign in to comment.