polymer-1.0 Questions

0

Using Polymer 1.1, in Chrome the elements are centered when the screen is resized smaller. But in Firefox, they shift to the left. I filed a bug for this, but in the meantime... Is there a way of...
Luby asked 27/9, 2015 at 21:10

1

Solved

I am trying to observe changes to an array of objects that is passed in to a Polymer element. When a new item is added to the array, the array is also changed in the Polymer element. However, the o...
Welloiled asked 23/9, 2015 at 18:42

2

I'm using layout horizontal wrap to locate some items based on its size and the container. These items have different sizes so, sometimes, I'm losing a lot of space below them. Better if I show yo...
Parolee asked 7/8, 2015 at 15:14

3

Solved

I want to use Polymer's UI elements (e.g., iron-icons, paper-button, etc.) without making custom elements or templates. For example, let's say I have: <paper-button id="my-button">Click me&...
Lili asked 11/7, 2015 at 19:36

2

What's a succinct way to explain the difference between double brackets ([[...]]) and double braces ({{...}}) in Polymer 1.0? For instance, in the documentation for the <iron-list> element t...
Sacculate asked 25/8, 2015 at 4:1

1

Solved

I'm trying to add a sticky footer to the Polymer Starter Kit. So far I've tried core-header-panel and sticky footer and http://www.jlmiller.guru/jekyll/2015/06/02/sticky-footer.html but neither ...
Huckster asked 23/8, 2015 at 0:21

3

Solved

I have been trying to use iron-form with a post method and i have some doubts on how does it works or even if I should be using it at all in some cases. So I am trying to find the answer to the fol...
Topsail asked 13/8, 2015 at 16:41

2

Solved

Need to add a custom validator which does some complex validation based on the values of other fields in the html. Tried adding custom validator function as an attribute to the paper-input elemen...
Ajar asked 12/8, 2015 at 2:29

1

Solved

I have a simple template that renders an array object. However, it fails with the following message: [dom-repeat::dom-repeat]: expected array for `items`, found [{"code":1,"name":"Item #1"},{"code...
Careless asked 9/8, 2015 at 21:21

2

Solved

Question Which method of placing the <script> tags is "best-practice?" Inside the <dom-module>? or Outside the <dom-module>? Also, please answer: Why? What...
Peltz asked 4/8, 2015 at 5:39

2

I have an Angular 1.x app, which I am trying to update to material design with the help of Polymer 1.0. I must state that I am only using the paper elements as normal building blocks and that I am ...
Proselytize asked 6/6, 2015 at 14:3

2

Solved

Question Does anyone have a working example of code for a login button? Detail: I need it to be a <paper-button> that says, "Login with x." Where "x" is any one of the following: "Goog...

1

Solved

Sometimes I'm coding in a wrong way my polymer 1.0 web app and stuff stops to work properly. Like setting data to some custom element and then immediately trying to read some data out of it (that d...
Trencherman asked 24/7, 2015 at 8:56

5

Solved

Question In the below example, how do I bind the obj.name variable of the <input> field in <test-element2> to <test-element> ? Background: Below is my code. I have two poly...

1

Solved

In version 0.5 it was easy: <polymer-element name="textarea-tpl" attributes="value placeholder"> <template> <link rel="stylesheet" type="text/css" href="css/index.css"> <t...
Mcmurray asked 23/7, 2015 at 18:26

1

Solved

The paper-dialog shows up behind drawer-panel when launched from a custom element. Here's the modified "my-greetings.html" custom element from polymer-starter-kit to show a dialog: <dom-modu...
Jam asked 14/7, 2015 at 11:56

1

Solved

im trying to learn Polymer, but i cannot understand how to style elements in version 1.0. The exemple just show this.. Custom property | Description | Default ----------------|-------------|---...
Polygnotus asked 17/7, 2015 at 16:9

1

Solved

I am using Polymer 1.0 to create a shopping/checkout cart. I have customers who may want to ship their order to multiple addresses. In the receipt, I need to list all the addresses with an index: ...
Coenocyte asked 13/7, 2015 at 15:58

1

Solved

I'm using grunt-vulcanize from an Import file with relative paths to a vulcanized.html in a new location. When the file is ready it has change the relative paths to the new location. That's working...

2

Solved

I created this component to demonstrate my question. This component works in chrome and firefox, as expected. But if I write this.$.wrapper.setAttribute('class','blue'); instead of this.$.wrapper.s...
Masonmasonic asked 11/7, 2015 at 23:36

1

Solved

In Polymer 1.0, I am trying to data bind a string variable {{str}} to an <iron-meta> element (tag in parent element) as follows. This fails: <iron-meta id="meta" key="info" value="{{str}...
Ulster asked 8/7, 2015 at 3:18

1

Solved

Is there a way in Polymer 1.0 to set up a binding using javascript like Node.bind() did previously? [Ignore this: Apparently being succinct is not allowed in stackoverflow so I have to write this ...
Compton asked 7/7, 2015 at 14:15

2

Solved

i use Polymer starter kit 1.0.2 and i'm trying to use iron-form based on (little) documentation i found. My method form is "post" and contain only one input. My form "action" is a PHP script (add...
Boothman asked 29/6, 2015 at 16:54

1

Solved

I am using the iron-form in Polymer 1.0 to submit a login form with paper-inputs and a paper-button. I am calling submit() on the buttons onclick, but nothing happens. I even tried to put in a nat...
Pantin asked 5/7, 2015 at 10:20

1

Solved

I have a Polymer 1.0 custom element that has a property of type boolean with default value set to true: myProperty: { type: Boolean, value: true } In my unit-test I instantiate this custom e...
Damales asked 2/7, 2015 at 9:14

© 2022 - 2024 — McMap. All rights reserved.