polymer-1.0

Retrieve data from Firebase to Polymer element

ぐ巨炮叔叔 提交于 2019-12-13 07:01:05
问题 I'm having trouble getting data from firebase to an polymer element. Here is my code: <dom-module id="bb-account-settings"> <template> <style is="custom-style" include="shared-styles"></style> <div class="settings-dialog"> <div class="frame"> <div class="horizontal layout"> <div> <div class="user-image"></div> </div> <div class="horizontal layout"> <paper-input label="First Name" value="{{fNameSet}}"></paper-input> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp <paper-input label="Last Name" value="{

Can't find element on iron ajax event methods

社会主义新天地 提交于 2019-12-13 05:55:51
问题 For below given code this.$.createButton or document.querySelector('createButton') works inside the ready method. But same code fails inside handleRequestSent or handleResponseReceived . The error message I get is Uncaught TypeError: Cannot read property 'createButton' of undefined I tried to debug, it appears that inside handleRequestSent and handleResponseReceived the this actually pointing to iron-ajax, but not the element dom root. Any suggestion is welcome. Thanks in advance. <dom-module

Polymer 1.0: I need an example of a login button

*爱你&永不变心* 提交于 2019-12-13 05:52:51
问题 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: "Google", "Google Plus", "Facebook", "Linked In", "Yahoo", or "Twitter". Obviously, the button also needs to "point to" or integrate with the respective service it mentions. Also please note, <google-signin> described here doesn't work for me because I need to use my own button (for styling purposes). I don't want

Polymer 1.0: What could be causing this error? “Uncaught TypeError: this is not a function”

你。 提交于 2019-12-13 04:58:51
问题 Question What could be causing the following console error? Uncaught TypeError: this.$.authgoogle.signin is not a function Goals I am trying to implement a user authentication in my custom element. I am using Google's authentication services to handle the authentication. For styling purposes, I am using my own custom <paper-button> instead of the button that comes with, say, the <google-signin> element. I am using the <google-signin-aware> element to do the authentication. Here is the

Is it possible to combine a dom-repeat on a platinum service worker?

亡梦爱人 提交于 2019-12-13 04:44:45
问题 I want to provide a user the ability to cache up to 2,600+ items, by groupings (categories of book, individual books, or possibly even just chapters of a certain book if they don't want the whole book). It is not possible, as far as I can tell, to precache all of these items because there are 2,600+ of them, and will be more in the future - the service worker will timeout with under a couple hundred. And since service workers either get all or none on install (if I understand correctly), do I

Understanding Polymer 1.x Polymer Starter Kit file structure as it relates to bower_components imports

假如想象 提交于 2019-12-13 04:00:39
问题 In the Polymer Starter Kit, every reference to the bower_components subdirectory refers to a node just below the app directory. However, (at least in my version of PSK) the bower_components subdirectory is one level up from the app directory. In other words, the bower_components subdirectory is actually located in the project root directory. Am I just miscounting my directory nodes? Or does this have something to do with how gulp and maybe vulcanize work? Or is it something else altogether

Polymer 1.0 , Google Chart type=“table” not working

偶尔善良 提交于 2019-12-13 03:47:35
问题 In the given Plunk example, Google "pie" chart is working BUT "table" chart is not working(meaning, "table" chart is in the DOM but it is not visible AND also makes 'pie' to disappear). Both examples are taken from the demo docs where both are working i.e. both are visible. Why 'table' chart is not visible in the Plunk example? <google-chart type="pie" data='[["ID", "Life Expectancy", "Fertility Rate", "Region", "Population"], ["CAN", 80.66, 1.67, "North America", 33739900], ["DEU", 79.84, 1

Polymer paper-dialog-scrollable. scroll to the end

风格不统一 提交于 2019-12-13 02:03:21
问题 I use paper-dialog-scrollable. <paper-dialog-scrollable> </paper-dialog-scrollable> How can I make this section to scroll to the end? I looked in the api and their is nothing that I can use. 回答1: You can give the paper-dialog-scrollable some id (e.g mypaperscrollable) and this.mypaperscrollable.$.scrollable.scrollTop = someValueHere You could get the relative position of the last element inside your scrollable and use that as the value for scrollTop 来源: https://stackoverflow.com/questions

Polymer 1.x: How to data bind to a variable boolean attribute?

人盡茶涼 提交于 2019-12-13 02:00:32
问题 Question How do I bind a variable to/as the disabled attribute of a <paper-checkbox> element? Based on the results of my code, it looks like the only way to toggle the disabled property is to include the disabled attribute as a string in the start tag. Surely there must be a way to toggle that as a variable? Link to JSBin http://jsbin.com/zecidojizu/edit?html,output <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Polymer Bin</title> <base href="http://element-party.xyz/"> <script

Polymer 1.0: Where is documentation for <iron-flex-layout>?

白昼怎懂夜的黑 提交于 2019-12-12 22:21:31
问题 Is there any documentation available for how to use Polymer 1.0 <iron-flex-layout> element? Previous research: Polymer web site Polymer Github Flexbox site 回答1: Check these following links: Documentation (Recommended) Plunker (Recommended) (Note to osX/Safari users: Must view in Chrome) <div class="horizontal layout"> Guide Examples 回答2: Yikes -- I didn't realize they hadn't shimmed backward compatibility for everything. 来源: https://stackoverflow.com/questions/31553044/polymer-1-0-where-is