Skip to content

Instantly share code, notes, and snippets.

@kosir
Last active August 29, 2015 14:17
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save kosir/fe151925fe7926ab1e4d to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../topeka-elements/topeka-datasource.html">
<link rel="import" href="../code-mirror/code-mirror.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#div {
height: 100%;
width: 100%;
overflow: hidden;
left: 0px;
top: 0px;
position: absolute;
}
#code_mirror {
width: 400px;
height: 300px;
left: 170px;
top: 160px;
position: absolute;
}
</style>
<div id="div">
<topeka-datasource url="../topeka-elements/categories.json" id="datasource" hidden></topeka-datasource>
</div>
<code-mirror value="<polymer-element name='my-element'>
<template></template>
<script>
Polymer('my-element', {});
</script>
</polymer-element>" id="code_mirror"><polymer-element name='my-element'>
<template></template>
<script>
Polymer('my-element', {});
</script>
</polymer-element></code-mirror>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment