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

Commit

Permalink
Sandbox: add polymer-grid-layout to the palette
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiefu committed Sep 20, 2013
1 parent 364ce04 commit 4e65b57
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 4 deletions.
1 change: 1 addition & 0 deletions Sandbox/lib/components.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
<link rel="import" href="tk-preview.html">
<link rel="import" href="tk-app.html">
<!-- -->
<link rel="import" href="../../../polymer-elements/polymer-grid-layout/polymer-grid-layout.html">
<link rel="import" href="../../../polymer-ui-elements/polymer-ui-icon/polymer-ui-icon.html">
<link rel="import" href="../../../polymer-ui-elements/polymer-ui-icon-button/polymer-ui-icon-button.html">
<link rel="import" href="../../../polymer-ui-elements/polymer-ui-toolbar/polymer-ui-toolbar.html">
Expand Down
24 changes: 20 additions & 4 deletions Sandbox/lib/tk-editors.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
font: inherit;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-user-select: all;
/* -webkit-user-select: all;
-moz-user-select: all;
user-select: all;
user-select: all; */
}
input:focus {
outline: 1px solid #448afd;
Expand Down Expand Up @@ -200,9 +200,9 @@
padding: 6px;
margin: 0;
width: 95%;
-webkit-user-select: all;
/* -webkit-user-select: all;
-moz-user-select: all;
user-select: all;
user-select: all; */
overflow: auto;
vertical-align: middle;
}
Expand All @@ -222,6 +222,22 @@
</script>
</polymer-element>

<polymer-element name="tk-json-editor" extends="tk-text-editor">
<template>
<shadow></shadow>
</template>
<script>
Polymer('tk-json-editor', {
workingValueChanged: function() {
this.$.input.textContent = JSON.stringify(this.workingValue);
},
format: function(value) {
return JSON.parse(this.workingValue);
}
});
</script>
</polymer-element>

<polymer-element name="tk-range-editor" extends="tk-abstract-editor" attributes="min max step defaultValue">
<template>
<style>
Expand Down
1 change: 1 addition & 0 deletions Sandbox/lib/tk-property-inspector.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
'select': 'tk-select-editor',
'color': 'tk-color-editor',
'text': 'tk-text-editor',
'json': 'tk-json-editor',
'id-select': 'tk-id-select-editor',
'target-select': 'tk-target-select-editor',
'speech': 'tk-speech-editor',
Expand Down
7 changes: 7 additions & 0 deletions Sandbox/metadata.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<tk-meta id="polymer-grid-layout" label="Grid Layout">
<template>
<polymer-grid-layout></polymer-grid-layout>
</template>
<property name="layout" kind="json"></property>
</tk-meta>

<tk-meta id="g-icon-button" label="Icon Button">
<template>
<g-icon-button src="images/mail.png"></g-icon-button>
Expand Down

0 comments on commit 4e65b57

Please sign in to comment.