Please stop making core/paper elements SPWA only

190 views
Skip to first unread message

Claudius Nicolae

unread,
Oct 11, 2014, 8:14:34 AM10/11/14
to polym...@googlegroups.com
Please stop making core/paper elements  only single page web app style!
For example add support to have paper-tabs with real links, not just js-api selector.

I think polymer components would work beautifully with combined with Turbolinks [1]:
a. Page gets loaded, polymer components are loaded and parsed
b. New link is clicked, loaded via Turbolinks, body replaced, polymer components in app's head are not re-parsed, they are already there from previously.

It's a shame not to support the most common patterns of how the web works (ie. via links).

Rob Dodson

unread,
Oct 11, 2014, 12:37:27 PM10/11/14
to Claudius Nicolae, polymer-dev
Supporting anchor tags would be nice. I may be overlooking a really obvious way to do it, but I tired a few variations this morning with no success. I raised an issue on your behalf. Hope that helps!

https://github.com/Polymer/paper-tabs/issues/32

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/7df2a75b-bb8f-496d-aece-1f7e0658a638%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Viktor Kojouharov

unread,
Oct 13, 2014, 5:28:03 AM10/13/14
to polym...@googlegroups.com, claudius...@gmail.com
I agree. I would love to have the paper-button support an href attribute. I currently have this custom element, which contains a hidden anchor, which I then click using javascript. Having that built-in would be great though.

Rob Dodson

unread,
Oct 13, 2014, 12:49:32 PM10/13/14
to Viktor Kojouharov, polymer-dev, Claudius Nicolae
Viktor — in the past I've wrapped a paper-button in an anchor, that does the trick ok and doesn't require javascript

Eric Bidelman

unread,
Oct 13, 2014, 12:58:14 PM10/13/14
to Rob Dodson, Viktor Kojouharov, polymer-dev, Claudius Nicolae
The latest version of paper-button takes light dom:

<paper-button>
  <a href="http://www.example.com">Check me out</a>
</paper-button>

http://jsbin.com/foyahu/1/edit

Viktor Kojouharov

unread,
Oct 14, 2014, 3:07:35 AM10/14/14
to polym...@googlegroups.com, vkojo...@gmail.com, claudius...@gmail.com
Thats ... so simple its brilliant. Thanks. I've got the anchor around the <shadow> and its great.

Rob Dodson

unread,
Oct 14, 2014, 12:58:35 PM10/14/14
to Viktor Kojouharov, polymer-dev, Claudius Nicolae
Eric - I noticed when you click in the button padding area the anchor doesn't fire. Do you think it would be better to style the anchor to wrap the button in an anchor?

Reply all
Reply to author
Forward
0 new messages