Skip to content

Instantly share code, notes, and snippets.

@venugopalkathavate
Created July 23, 2014 09:49
Show Gist options
  • Save venugopalkathavate/23050d6e8cce9925ad90 to your computer and use it in GitHub Desktop.
Save venugopalkathavate/23050d6e8cce9925ad90 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../paper-input/paper-input.html">
<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">
<polymer-element name="my-element" attributes="enteredText">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#section {
left: 480px;
top: 280px;
position: absolute;
}
#core_card {
position: absolute;
width: 300px;
height: 300px;
background-color: rgb(255, 255, 255);
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 130px;
top: 130px;
}
#core_icon {
height: 24px;
width: 24px;
}
</style>
<core-card id="core_card" layout vertical>
<paper-input label="{{ $.core_input.value }}" inputvalue="sdfsdfsdf" value="{{ value }}" id="paper_input"></paper-input>
<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 placeholder="text input" inputvalue="sdfsdfsdf" value="{{ $.paper_input.value }}" id="core_input" flex></core-input>
</core-field>
</core-card>
</template>
<script>
Polymer('my-element', {
value: 'sdfsdfsdf'
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment