I have created a function in global.function.js file as   function getData(flag) { if (flag === 1) {   return "one";  }  else {   return "not one";  } }   which then is imported using custom-js-import.html element:  <script src=...
I am trying to implement this answer.  Is there any way to bind an on-click or on-tap event of a <paper-button> to either of the following hidden input elements?  my-form.html  <iron-form>   <form>     ...     <my-buttons><...
I am facing an issue with automating polymer ui page using selenium webdriver. The reason that is blocking to start selenium automation is "shadow root" element in  the polymer components. kindly suggest with some examples or ideas to overcom...
I have 2 custom child elements that I am trying to pass data between through a parent element. My code in the parent html looks something like this:  <dom-module id="parent-html">  <template>   <child-elem1 id="ch1">...
I have a tile inside a template and I want it to show a date:    <template>     <px-tile         description=[[date]]     </px-tile>   </template>   Where date is a property of the element:    date: {     type: Date,   }   This w...
What is the clean way, with Polymer 2.0, to parameterize the dom-repeat item template ?  Usage:  <custom-component>     <template id="item-template">         [[item]]     </template> </custom-component>   CustomCompone...
I'm trying to understand if what I am doing is even possible within the realms of Polymer. My current example involves trying to import an npm module called currency-formatter into a Polymer 2.0 element that can be called.  The problem I run into...
By browser extension I mean WebExtension https://developer.mozilla.org/ru/Add-ons/WebExtensions.  I tried to use it for just local files and got:     Access to Imported resource at 'file:///' from origin 'null' has been   blocked by C...
I am building a web application, and for a dropdown list I am using a paper-dropdown-menu My code is quit simple, and closely follows the demo presented here  Here is a snippet of the code:   <link rel="import" href="/polymer/polymer-e...
I am trying to disable all dates of all months in vaadin-date-picker. While looking through the code, I found that I can individually disable dates by setting disabled in   vaadin-month-calendar.html#L75 . In that case the disabled date is faded, whi...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.