Skip to content

Instantly share code, notes, and snippets.

@IntranetFactory
Created October 14, 2014 16:03
Show Gist options
  • Save IntranetFactory/1a149cf13038a1e9018f to your computer and use it in GitHub Desktop.
Save IntranetFactory/1a149cf13038a1e9018f to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-item/core-item.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_field {
left: 90px;
top: 40px;
position: absolute;
}
#core_item {
left: 120px;
top: 90px;
position: absolute;
}
</style>
<core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
<core-icon icon="search" id="core_icon"></core-icon>
<core-input willvalidate placeholder="text input" inputvalue="{{ myvalue }}" value="xxxxy" id="core_input" flex></core-input>
</core-field>
<core-item id="core_item" icon="settings" label="Item" horizontal center layout on-tap="{{ xx }}"></core-item>
</template>
<script>
Polymer({
xx: function () { alert(); },
myvalue: 'xxxxy',
myvalueChanged: function () {
alert();
}
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment