Polymer : Open new page from menu

184 views
Skip to first unread message

hakim...@fiction-labs.com

unread,
Dec 23, 2014, 12:10:49 AM12/23/14
to polym...@googlegroups.com

I need to open a new page after selecting any tab. I've managed to change the page but the problem is im unsure on how to make it open in a new page. It only appears under the menu. heres the code.

Using core-menu , core-item , core-animated-pages


<core-menu selected="{{selected}}" layout vertical valueattr="label" selectedindex="{{selected}}" id="core_menu">
    <core-icon-button class="core_item"  icon="info"  horizontal center layout>
     <core-item><p>About KwikBlood</p></core-item>
   </core-icon-button>
   <core-icon-button class="core_item" icon="perm-device-info" horizontal center layout>
     <core-item><p>Blood Types &amp; Information</p></core-item>
   </core-icon-button>
   <core-icon-button class="core_item" icon="link" horizontal center layout>
     <core-item><p>Useful Links</p></core-item>
   </core-icon-button>
   <core-icon-button class="core_item" icon="social:share" horizontal center layout>
     <core-item><p>Share On Social</p></core-item>
   </core-icon-button>
   <core-icon-button class="core_item" icon="settings"horizontal center layout>
      <core-item><p>Settings</p></core-item>
   </core-icon-button>
 </core-menu>

  <core-animated-pages  transitions="slide-from-right" selected="{{selected}}" selectedindex="{{selected}}" notap lastselected="0" horizontal layout one flex>
    <section active one flex vertical layout>
      <sample-content size="2"></sample-content>
    </section>
    <section one flex vertical layout>
      <sample-content size="2"></sample-content>
    </section>
    <section one flex vertical layout>
      <sample-content size="2"></sample-content>
    </section>
    <section  one flex vertical layout>
      <sample-content size="2"></sample-content>
    </section>
    <section one flex vertical layout>
      <sample-content size="2"></sample-content>
    </section>     
  </core-animated-pages>


here's what it looks like : https://drive.google.com/file/d/0B1hwrDMZACAudTZSNGRzNnF5cFk/view?usp=sharing

If any of you have any idea how to solve this please please let me know!

Rob Dodson

unread,
Dec 29, 2014, 6:29:50 PM12/29/14
to hakim...@fiction-labs.com, polymer-dev
Would you mind asking on StackOverflow?

Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/402c329c-e1d2-4585-b96b-fe144d78cd56%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hakim Azmi

unread,
Dec 29, 2014, 10:02:28 PM12/29/14
to polym...@googlegroups.com, hakim...@fiction-labs.com
Reply all
Reply to author
Forward
0 new messages