polymer

Join queries with polymer and firebase

送分小仙女□ 提交于 2019-12-25 08:16:26
问题 I'm trying to do something which in theory should be simple. I have the following data structure in Firebase: - projects -- 1 --- name: some project --- organisation: awesome organisation --- users ---- uid1: true ---- uid2: true - users -- uid1 --- name: Bob --- email: bob@test.com --- tel: 020 3456 3456 -- uid2 --- name: tom --- email: tom@test.com --- tel: 020 3456 3456 I have a project id that is passed from a parent element, and I'd like to display all the users for that project. <dom

How to remove an item from a paper-listbox?

白昼怎懂夜的黑 提交于 2019-12-25 07:59:37
问题 I can add an item to a paper-listbox with Polymer.dom($['mylistbox']).append(paperItem); However I'm having trouble deleting it from the list afterwards. I tried: paperItem.remove(); That initially makes it dissapear, but it appears again after selecting another item in the list. How do I remove a paper-item from a listbox? 回答1: Polymer.dom($['mylistbox']).removeChild(paperItem); 来源: https://stackoverflow.com/questions/39053131/how-to-remove-an-item-from-a-paper-listbox

signedIn property of domHost is false on ready function call

你离开我真会死。 提交于 2019-12-25 07:32:38
问题 I want to check if the user is logged in on element creation and eventually redirect him if the user is not. The problem is that the domHost.signedIn property is false even though the user is signedIn. If I check the property later(for example when I call a function with button tap) the property is true as it should be. Here is the code: <link rel="import" href="../bower_components/polymer/polymer.html"> <link rel="import" href="/bower_components/paper-button/paper-button.html"> <dom-module

Polymer Load Product Page data from JSON

喜欢而已 提交于 2019-12-25 07:18:11
问题 Working with an e-commerce store application with polymer I'm loading products array using polymer core-ajax and using core-animated pages to display product thumbnail and product detail page (full view) but I only wanted to load the product details when clicking on each product thumb, How can I do this Find the HTML <div id="article-content" > <template is="auto-binding" id="page-template" > <core-ajax id="ajaxpolo" auto url="./json/products.json" handleAs="json" on-core-response="{

Recursive calls with iron-ajax?

心不动则不痛 提交于 2019-12-25 07:15:49
问题 I suspect I'm way off here, but essentially I'm trying to retrieve a list of tickets and then the details for each ticket. I have the first part working, but when I tried to add the "recursive" part it's just failing. This is the working code that just lists ids: <template is="dom-bind" id="app"> <iron-ajax auto url="https://<mydomain>.freshdesk.com/api/v2/tickets" headers='{ "user": "<apikey>", "pass": "X", "sendImmediately": "true" }' handle-as="json" method="GET" last-response="{

Polymer's paper-dropdown-menu shows uncollapsed

我怕爱的太早我们不能终老 提交于 2019-12-25 07:07:19
问题 I'm trying to build a small web app using Polymer, based on the Polymer Starter Kit 1.3, and I've immediately ran into a problem - I'm trying to create an element that contains a drop down menu. I've copy/pasted the example from the documentation but instead of looking like a drop down, it looks like a regular uncollapsed listbox : This is my element template: <template> <style> :host { display: block; } span { @apply(--paper-font-body1); } </style> <paper-dropdown-menu label="Dinosaurs">

polymer V1.0 iron-list in a complex flex layout is not visible

亡梦爱人 提交于 2019-12-25 06:47:07
问题 I'm playing with Google's Polymer library and I have trouble with iron-list in a (complex) flex layout. The list is not rendered. Here is my HTML: <!doctype html> <html> <head> <title>iron-list and flex layout</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes"> <meta name="mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes"> <link rel="stylesheet" href="//fonts

Polymer web component attribute value not getting passed down

[亡魂溺海] 提交于 2019-12-25 05:13:41
问题 I have started out my own little WebComponents library at Github, and it all works well by it self when tested. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>WebComponents</title> <script src="bower_components/platform/platform.js"></script> <link rel="import" href="bower_components/polymer/polymer.html"> <link rel="import" href="bower_components/WebComponents/components/scheduler/ss-scheduler.html"> </head> <body> <ss-scheduler cronValue="0 0 0 0 *"></ss-scheduler> </body> <

how to fetch / grab polymer spa webpage by using python with headless server and no GUI

自作多情 提交于 2019-12-25 05:04:47
问题 I'm trying to grab the content of the following url: https://docs-05-dot-polymer-project.appspot.com/0.5/articles/demos/spa/final.html My goal is to grab the content (source code) of the webpage as seen by the visitor, so after it has rendered all javascripts etc. To do so I used the example mentioned here:http://techstonia.com/scraping-with-phantomjs-and-python.html That example works on my server. But the challenge is to also have it work for polymer based SPA sites like the one mentioned.

Validating Polymer Paper Elements

放肆的年华 提交于 2019-12-25 04:50:24
问题 I'm building a polymer app that submits to a REST api and I've got all that up and running. But now I'm trying to add some simple validation to it and I can't figure out how to validate the paper-radio inputs. I just want to use HTML5 validation - but that may not be possible. The only thing is that I cannot use jQuery - its not an option for the project's parameters. Does anyone know how to validate the basic structure I'm using? (see below) <paper-radio-group selected="{{selected}}"> <paper