Questions tagged [polymer-2.0]

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

34 questions
1
vote
2 answers

Reset the state of a page in polymer

I have a a few iron pages where 'home' is my home page. It has a bunch on game cards in it and when the user clicks on a card, it will start a quiz with a bunch of questions. When I go back to the home page and click on a card again, it doesn't…
user3310115
  • 1,372
  • 2
  • 18
  • 48
1
vote
1 answer

window.addEventListener is not working on a user click on the browser back button in polymer 2.0?

window.addEventListener('popstate', function(event) { alert("you are not able to push back button"); }); I have create the web application using polymer 2.0 but I have to click on the back button to the browser is logout I have to show the…
Kapil Soni
  • 1,003
  • 2
  • 15
  • 37
1
vote
1 answer

How do I get form data from iron-form to be output in view

I am new to Polymer 2 and ES6. I can console.log data that is input into the iron-form. However, I can't output it to the screen. I thought this line would achieve the goal: this.querySelector('.output').innerHTML =…
1
vote
1 answer

Use unpublished Polymer2 custom elements

I'm new in working with Polymer 2. I created two custom elements, let's call them and . I want to use these two together in a new element called . So when developing I can't just bower install --save a-elem b-elem…
Antonio Dell
  • 497
  • 5
  • 17
1
vote
1 answer

Trigger angular method from polymer template

Polymer template Sample.html
Sivasailanathan
  • 135
  • 2
  • 11
1
vote
1 answer

Working demo of state management in Polymer 2.x using Mixins

Here, I'm trying to build a working demo to implement the code contained in this blog article written by @CaptainCodeman — Managing State in Polymer 2.0 - Beyond Parent / Child Binding Share state between separated DOM elements without Redux. I'm…
Let Me Tink About It
  • 15,156
  • 21
  • 98
  • 207
1
vote
2 answers

How to close the gap between drawer and main content in app-drawer-layout in Polymer 2.x?

I have an app-drawer-layout element and in it, I want the drawer content (blue) flush with the main content (yellow) with no gap (white) in between them. Note that I changed the --app-drawer-width to 100px from its default 256px. This might be what…
Let Me Tink About It
  • 15,156
  • 21
  • 98
  • 207
1
vote
1 answer

Polymer2.0 - dom-repeat is not working inside paper-tabs

When I try to include dom-repeat inside paper-tabs, I am getting blank display instead of dom-repeat values DOM-repeat works fine outside paper-tabs but inside paper-tab Codepen- https://codepen.io/nagasai/pen/gxPQqQ HTML:
Naga Sai A
  • 10,771
  • 1
  • 21
  • 40
1
vote
0 answers

Polymer2.0 - polymer testing is failing with error

When I try to test polymer elements and run polymer test command, I am getting below error Installing and starting Selenium server for local browsers ---------- selenium-standalone installation starting ---------- --- selenium install: from:…
Naga Sai A
  • 10,771
  • 1
  • 21
  • 40
1
vote
2 answers

How to style vaadin-context-menu?

This question is about the ES6 web component (compatible with Polymer 2.0) called vaadin-context-menu version 3.0.0-alpha1. In the below screen capture, I want the paper-item labeled "Logout" to look the same as the paper items labeled "Edit…
Let Me Tink About It
  • 15,156
  • 21
  • 98
  • 207
0
votes
0 answers

Call function in dynamically created row in Polymer

I am adding a row dynamically using a template. While adding the row, I also want a on-change="addTotal" function on Amount column. Whenever the Amount column of newly added row changes, it should call addTotal() function that adds all the values of…
LaMars
  • 45
  • 2
  • 10
0
votes
0 answers

Weird behavior using dom-if template in a list element

I have a weird problem with the use of dom-if. I have a list of elements that displayed a status with different colors when something is failing and also displaying the count of children elements failing. The change of color is working fine…
Jonathan Anctil
  • 1,025
  • 3
  • 20
  • 44
0
votes
1 answer

Polymer 2.0 dynamically assigned id to a

I am trying to implement Sortablejs in Polymer2.0 app, where in I dynamically assign ids to the ul element in a dom repeat template. The problem I have is I can't access the ul with id in the observer method of the data list todos. I tried…
0
votes
1 answer

Can't find div for styling (tranform zoom) in javascript script tag in shadow dom of polymer 2.0 element

I am creating a polymer 2.0 PWA / Website. I have a problem with accessing a div container (I wish to zoom in and zoom out the div based on a user input). In shadow dom with template dom if I am not able to get the element in Javascript so that on…
0
votes
0 answers

async not waiting for await in callback

I have a function that has to be async because I need it to sleep at some point for half a second, but then I'd just like it to be completely sequential. I'm doing the following: function sleep(ms) { return new Promise(resolve =>…
lte__
  • 7,175
  • 25
  • 74
  • 131
1
2 3