bkmeneguello
12/18/2014 - 1:52 PM

designer

designer

<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
<link rel="import" href="../core-animated-pages/transitions/slide-up.html">
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<link rel="import" href="../paper-input/paper-input.html">

<polymer-element name="my-element">

  <template>
    <style>    
      :host {
        position: absolute;
        top: 0px;
        left: 0px;
        right: 0px;
        bottom: 0px;
      }
      #core_scaffold {
        position: absolute;
        top: 0px;
        right: 0px;
        bottom: 0px;
        left: 0px;
      }
      #core_header_panel {
        background-color: rgb(255, 255, 255);
      }
      #core_toolbar {
        color: rgb(255, 255, 255);
        background-color: rgb(79, 125, 201);
      }
      #core_menu {
        font-size: 16px;
      }
      #new_post {
        right: 20px;
        bottom: 20px;
        position: absolute;
      }
      #send_post {
        right: 20px;
        bottom: 20px;
        position: absolute;
      }
      #take_picture {
        right: 20px;
        bottom: 90px;
        position: absolute;
      }
      #core_pages {
        border: 1px solid silver;
        left: 0px;
        top: 0px;
        right: 0px;
        bottom: 0px;
        position: absolute;
      }
      #core_header_panel1 {
        left: 0px;
        top: 0px;
        right: 0px;
        bottom: 0px;
        position: absolute;
      }
      #core_toolbar1 {
        color: rgb(255, 255, 255);
        background-color: rgb(79, 125, 201);
      }
      #section2 {
        left: 0px;
        top: 0px;
        right: 0px;
        bottom: 0px;
        position: absolute;
        background-color: rgb(255, 255, 255);
      }
      #paper_input {
        left: 0px;
        top: 5px;
        right: 0px;
        position: absolute;
      }
    </style>
    <core-animated-pages transitions="cross-fade" lastselected="1" selectedindex="0" notap id="core_pages" class="fancy">
      <section id="section" active>
        <core-scaffold id="core_scaffold">
          <core-header-panel mode="seamed" id="core_header_panel" navigation flex>
            <core-toolbar id="core_toolbar">Teste</core-toolbar>
            <core-menu selected="Item1" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme">
              <core-item id="core_item" icon="settings" label="Item1" horizontal center layout active></core-item>
              <core-item id="core_item1" icon="settings" label="Item2" horizontal center layout></core-item>
            </core-menu>
          </core-header-panel>
          <div id="div" tool>TesteApp</div>
        </core-scaffold>
        <paper-fab icon="add" id="new_post" on-click="{{ newPost }}"></paper-fab>
      </section>
      <section id="section1">
        <core-header-panel mode="standard" id="core_header_panel1">
          <core-toolbar id="core_toolbar1">
            <core-icon-button icon="menu" id="core_icon_button"></core-icon-button>
            <div id="div1">Header</div>
          </core-toolbar>
          <section id="section2">
            <paper-input label="Type something..." id="paper_input"></paper-input>
          </section>
        </core-header-panel>
        <paper-fab icon="av:play-arrow" id="take_picture"></paper-fab>
        <paper-fab icon="av:play-arrow" id="send_post"></paper-fab>
      </section>
    </core-animated-pages>
  </template>

  <script>

    Polymer({
      newPost: function () {
      	this.$.core_pages.selected = 1
    	}
    });

  </script>

</polymer-element>