Questions tagged [polymer-1.0]

User this tag for questions specific to version 1 of Google's web components library, Polymer.

Polymer 1.0 is the first production-ready release of Google's web components library, . It was released at Google I/O on May 29, 2015.

2366 questions
10
votes
3 answers

With iron-ajax, how to read the headers of a response?

When a response for a request arrives, is there any way to read the response headers?
Allan Hasegawa
  • 988
  • 10
  • 12
10
votes
3 answers

Polymer 1.0 default icon set in iron-icons not working using blaze (meteor) templating engine

After upgrading to Polymer 1.0, default iron-icons set is not working. I am trying to use home icon from the default icon set. HTML code fragment:
roray
  • 756
  • 1
  • 16
  • 35
10
votes
1 answer

Polymer 1.0: Multiple calls to send() method of iron-request

I have a component that uses an instance of to retrieve data from the back-end, and I would like to use to send updates such as POST/DELETE requests. Everything works perfectly the first time around. However if the request…
Neil Bartlett
  • 23,743
  • 4
  • 44
  • 77
9
votes
2 answers

What is the exact difference between Polymer "reflectToAttribute" and "notify"?

The Polymer properties object supports two different keys that I don't quite understand the difference between, reflectToAttribute and notify. reflectToAttribute says that the attribute on the host node will change when the value changes. notify…
Carson McNeil
  • 790
  • 9
  • 22
9
votes
3 answers

How to use commas in a CSS variable fallback?

How can one use commas in the fallback value of a CSS variable? E.g. this is fine: var(--color, #f00), but this is weird var(--font-body, Verdana, sans-serif). The idea is to be able to set a font-family using a variable with a fallback value of say…
Tony Bogdanov
  • 7,436
  • 10
  • 49
  • 80
9
votes
2 answers

How to set dynamic Meta Tags and Open Graph tags in polymer?

I have a polymer node site that I've been working on and can't figure out how to include dynamic meta tags and Open Graph tags. Jquery won't work and neither will using the polymer api to add a node because it will add all the tags after the page…
ahebib
  • 93
  • 1
  • 10
9
votes
1 answer

How to write listeners in ES6 in Polymer?

I basically want to write the following code in ES6 fashion. listeners: { 'neon-animation-finish': '_onNeonAnimationFinish' }, I have tried using a property like the following but the _onNeonAnimationFinish callback is never fired. class…
Jessica
  • 2,057
  • 1
  • 15
  • 24
9
votes
2 answers

paper-dialog in Polymer doesn't close in iPhone

I use this example from the doc of polymer

Header

Lorem ipsum...
Cancel
user5303752
9
votes
1 answer

Specify browser location for wct-local test

The Polymer Starter Kit contains web-component-tester for unit testing your custom elements. In wct.conf.json you can specify the browsers to run the tests in. { "suites": ["app/test"], "plugins": { "local": { "browsers": ["firefox"] …
Stevy
  • 743
  • 5
  • 15
9
votes
2 answers

Hidden attribute in Polymer 1.0

I haven't used Polymer since the 0.4-0.5 era and am used to using the hidden attribute like so Now in Polymer 1.0 I see that have to use computed values from a method for anything that is not…
najm
  • 834
  • 1
  • 13
  • 32
9
votes
4 answers

Polymer 1.0 binding properties to inline styles in template

I would like to do something like this in polymer...