polymer-1.0 Questions

3

I'm a bit amazed I haven't been able to find an explanation for how to do this as it seems like it's fairly elemental to debugging, but I can't find anywhere how to print the attributes of an objec...
Lancastrian asked 20/6, 2016 at 0:59

1

I have created a custom web component with Polymer, that wraps text and alters it slightly (transforming to uppercase in this proof of concept). The element itself works OK with static content. Ho...
Molarity asked 23/8, 2016 at 9:13

2

Solved

What's the difference between Polymer Starter Kit and Polymer App Toolbox? Both are collections of web components, build & testing tools, and Material Design templates for building Progressive...

3

Solved

Im trying to create a toggleable menu, but for some reason the hidden attribute won't work. It won't work for either value so I don't think its a data binding problem. I'm using this method in oth...
Anglican asked 13/6, 2016 at 15:10

2

Solved

How can I use getElementById in a Polymer custom element? Here is my element: <link rel="import" href="../bower_components/polymer/polymer.html"> <link rel="import" href="../styles/share...
Arianism asked 25/7, 2016 at 8:21

2

Solved

I try to use swipe-pages by template repeat. <swipe-pages> <template is="dom-repeat" items="{{values}}"> <swipe-page> <div> Text to swipe </div> </swipe-pa...
Fieldfare asked 11/9, 2015 at 19:5

5

Solved

I am trying to show a paper-progress when an iron-ajax request is in progress with no success. Below is the code for a custom element get-products-service which hosts the iron-ajax request, and a p...
Legislate asked 11/6, 2015 at 19:26

2

I'm looking for a tried and true way of handling asynchronous calls to API endpoints returning JSON (using polymer's latest rendition of the iron-ajax element). These API calls rely on etag matchin...
Hemisphere asked 20/11, 2015 at 20:54

1

Solved

I'm having issues using shadow DOM for one of the web-components (paper-stepper) and it requires the use of the shady DOM instead. I'm not sure what the differences are and why that is the case.
Hannigan asked 7/6, 2016 at 23:39

3

Solved

Does anybody have any advice for fixing the problem of a modal appearing behind its backdrop? So far, I have tried making sure I have all the necessary imports (including <paper-dialog-scrollab...
Selfmortification asked 13/7, 2015 at 22:7

2

Solved

How do I pass a dom-repeated item inside a function in on-click? My code doesn't work: <dom-module id="my-element"> <template> <template is="dom-repeat" items="{{stuff}}> &...
Beaudoin asked 6/7, 2015 at 11:14

3

Solved

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 fon...
Shahjahanpur asked 25/5, 2016 at 16:13

1

Solved

How can I manage to use a behavior (Polymer.AppLocalizeBehavior) inside a nested template: the created scope hides the localize() function. <template> ... <div class="content"> <di...
Judie asked 19/5, 2016 at 19:10

1

Solved

Ok so far I was successfully able to bind <paper-radio>, <paper-checkbox> with ngModel by using a Custom ControlValueAccessor for each one of them. Now I'm stuck at <paper-dropdown-m...
Ballou asked 13/5, 2016 at 6:20

4

Can someone supply examples of Single-Page Applications (SPA) using Polymer 1.0?
Boehike asked 5/6, 2015 at 5:41

1

Solved

I have this simple element which just lets you select a local file at a time, then shows selected files as items you can remove, something like this: The component by itself works just fine, the ...
Overact asked 6/5, 2016 at 6:32

2

Solved

I can get my <iron-meta> instance to work properly when using a static value. But when I bind the value to a dynamic variable (using {{}}) it <iron-meta> no longer behaves as expected. ...
Sapro asked 10/7, 2015 at 11:9

1

I've been struggling with this for a while and finally I managed to track down the root of the problem, yet I don't know how to solve it! Consider rendering Polymer's elements in a React render me...
Perceive asked 17/4, 2016 at 5:42

4

Solved

I am new to web development and building an application using polymer 1.0.4. I am using the page.js routing similar to the example in start kit. Now many of the custom element that I built are usin...
Headsman asked 29/9, 2015 at 1:28

4

Solved

In a custom element I want to access a span and append a child to it but all usual accessors give undefined: <template> <template is="dom-if" if="[[condition]]" restamp> <span id=...
Sausage asked 7/12, 2015 at 16:43

1

Solved

I have some code that uses Polymer attributes on elements, for example: <paper-drawer-panel force-narrow> The way polymer works is that I can't simply say force-narrow="false" if I wa...
Effector asked 26/3, 2016 at 20:51

1

Solved

Polymer has support for <style is="custom-style"> which allows you to define styles that only apply to elements, e.g. the shadow DOM. Polymer also has support for <dom-module id="shared-s...
Carrasco asked 25/3, 2016 at 17:1

4

Solved

I'm trying to use Polymer on a new project, and was trying to avoid using Bower in favor of NPM for front-end dependency management. The getting started page gives instructions for using Bower (and...
Adah asked 30/6, 2015 at 2:56

1

I have some simple code (Angular2 + Polymer) that creates a paper-input with a iron-icon as a suffix icon: <paper-input type="text" [control]="email" label="Email"> <iron-icon suffix ic...
Unholy asked 1/3, 2016 at 22:16

1

Solved

This is my first question, I'm using angular2.beta.8, polymer 1.0, typescript. I'm having a problem when I use ngModel data binding with polymer paper-input element Basically nothing more th...
Connive asked 8/3, 2016 at 12:53

© 2022 - 2024 — McMap. All rights reserved.