Skip to content

Instantly share code, notes, and snippets.

@ryw
Last active August 29, 2015 14:07
Show Gist options
  • Save ryw/0aa5da19a608a9fee823 to your computer and use it in GitHub Desktop.
Save ryw/0aa5da19a608a9fee823 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../chart-js/chart-js.html">
<link rel="import" href="../ace-element/ace-element.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#chart_js {
width: 470px;
height: 280px;
left: 20px;
top: 30px;
position: absolute;
}
#ace_element {
width: 400px;
height: 300px;
left: 410px;
top: 450px;
position: absolute;
}
</style>
<chart-js kind="Line" id="chart_js" vertical layout center></chart-js>
<ace-element value="function test() {
var x = true;
}" editorvalue="function test() {
var x = true;
}" id="ace_element">function test() {
var x = true;
}</ace-element>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment