Skip to content

Instantly share code, notes, and snippets.

@mlajtos
Last active August 29, 2015 14:07
Show Gist options
  • Save mlajtos/58494a49037e71ca2bf8 to your computer and use it in GitHub Desktop.
Save mlajtos/58494a49037e71ca2bf8 to your computer and use it in GitHub Desktop.
designer
<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;
}
#layout {
height: 100%;
}
#input {
height: 100%;
float: left;
position: relative !important;
}
#operation {
height: 100%;
float: left;
position: relative !important;
}
#output {
height: 100%;
float: left;
position: relative !important;
}
</style>
<div id="layout" horizontal layout>
<ace-element value="function test() {
var x = true;
}" wrap editorvalue="function test() {
var x = true;
}" id="input">function test() {
var x = true;
}</ace-element>
<core-splitter direction="left" on-track="{{ track }}"></core-splitter>
<ace-element value="function test() {
var x = true;
}" wrap editorvalue="function test() {
var x = true;
}" id="operation" flex>function test() {
var x = true;
}</ace-element>
<core-splitter direction="right"></core-splitter>
<ace-element value="function test() {
var x = true;
}" wrap editorvalue="function test() {
var x = true;
}" id="output">function test() {
var x = true;
}</ace-element>
</div>
</template>
<script>
Polymer({
track: function () {
console.log("ahoj!")
}
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment