polymer-1.0

How to solve No 'Access-Control-Allow-Origin' in polymer-project?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-30 17:48:11
Now I exploring Polymer-project 1.0 and the task is to get the JSON and print output repeatedly. But no matter what i tried below error is coming, even i tried with Github pages also gives me same error response in terminal Error XMLHttpRequest cannot load https://ajax.googleapis.com/ajax/services/search/news?v=1.0&rsz=8&pz=1&cf=all&ned=in&hl=en&topic=tc . No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' http://rajasimon.github.io ' is therefore not allowed access. Not into theming and designing the material design... All I want the functionality will work

Polymer 1.0 default icon set in iron-icons not working using blaze (meteor) templating engine

拥有回忆 提交于 2019-11-30 12:36:20
After upgrading to Polymer 1.0, default iron-icons set is not working. I am trying to use home icon from the default icon set. HTML code fragment: <link rel="import" href="/components/iron-flex-layout/classes/iron-flex-layout.html"> <link rel="import" href="/components/iron-icons/iron-icons.html"> <link rel="import" href="/components/iron-icons/communication-icons.html"> <link rel="import" href="/components/iron-form/iron-form.html"> <link rel="import" href="/components/iron-selector/iron-selector.html"> <link rel="import" href="/components/iron-pages/iron-pages.html"> <!-- OOTB paper elements

Are there any built in auto-complete input components for Polymer 1.0? [closed]

 ̄綄美尐妖づ 提交于 2019-11-30 11:17:32
I've been muddling around with Polymer 1.0 since its release, and I've hit a use case where a select list just won't be sufficient (too many options to select from). What I really need is an autocomplete textbox. Is there one built-in or planned in the paper or iron Polymer controls? Or should I be looking at autocomplete solutions from other frameworks? So far, I've been able to keep my app light-weight, and I'd prefer to avoid other frameworks if I can help it. Thanks, Ryan Edit: The best place I've seen to bring up a first-party developed autocomplete is on the PolymerElements/paper

Simple Polymer 1.0 data table

微笑、不失礼 提交于 2019-11-30 09:48:49
问题 I am trying to create a simple Polymer component that renders a table from an array of data. Example of the intended usage of said component would be the following: <my-table data="{{someArray}}"> <my-column header="Id"><template>{{item.id}}</template></my-column> <my-column header="Name"><template>{{item.name}}</template></my-column> </my-table> And the render should look like this: However , upon creating a semi-working prototype, things get complicated. The prototype can be found here:

Usage of Polymer 1.0 paper-styles Element

喜你入骨 提交于 2019-11-30 08:41:46
问题 Unfortunately, I'm finding the current documentation/examples for the usage of paper-styles a bit lacking. I'm not an experienced CSS guy (relative newbie actually), so I could really use examples of how to implement Polymer 1.0 application-wide styling in order to be used by all of it's custom elements (i.e. by applying classes to any tags in those custom element's local DOMs). I did this kind of thing relatively easily in Polymer 0.5 using core-styles, but it has changed enough in 1.0 to

How to set dynamic Meta Tags and Open Graph tags in polymer?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-30 03:22:54
问题 I have a polymer node site that I've been working on and can't figure out how to include dynamic meta tags and Open Graph tags. Jquery won't work and neither will using the polymer api to add a node because it will add all the tags after the page loads and facebook won't be able to read the tags. Google crawlers do render the page but it would be best if I could set the description in the header. <html> <head> <meta name="description" content="description goes here" /> <meta property="og

Polymer 1.0 default icon set in iron-icons not working using blaze (meteor) templating engine

♀尐吖头ヾ 提交于 2019-11-29 18:24:35
问题 After upgrading to Polymer 1.0, default iron-icons set is not working. I am trying to use home icon from the default icon set. HTML code fragment: <link rel="import" href="/components/iron-flex-layout/classes/iron-flex-layout.html"> <link rel="import" href="/components/iron-icons/iron-icons.html"> <link rel="import" href="/components/iron-icons/communication-icons.html"> <link rel="import" href="/components/iron-form/iron-form.html"> <link rel="import" href="/components/iron-selector/iron

Are there any built in auto-complete input components for Polymer 1.0? [closed]

送分小仙女□ 提交于 2019-11-29 16:56:52
问题 I've been muddling around with Polymer 1.0 since its release, and I've hit a use case where a select list just won't be sufficient (too many options to select from). What I really need is an autocomplete textbox. Is there one built-in or planned in the paper or iron Polymer controls? Or should I be looking at autocomplete solutions from other frameworks? So far, I've been able to keep my app light-weight, and I'd prefer to avoid other frameworks if I can help it. Thanks, Ryan Edit: The best

Simple Polymer 1.0 data table

拟墨画扇 提交于 2019-11-29 16:51:46
I am trying to create a simple Polymer component that renders a table from an array of data. Example of the intended usage of said component would be the following: <my-table data="{{someArray}}"> <my-column header="Id"><template>{{item.id}}</template></my-column> <my-column header="Name"><template>{{item.name}}</template></my-column> </my-table> And the render should look like this: However , upon creating a semi-working prototype, things get complicated. The prototype can be found here: http://jsbin.com/sirutusupu/edit?html,console,output . Disclaimer : it doesn't work unless you download it

ngModel Binding on Polymer dropdown (Angular2)

好久不见. 提交于 2019-11-29 16:48:03
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-menu> Here the scenario, I can capture the paper-dropdown (iron-select) but cannot bind -two-way, i.e., using ngModel below is the HTML and custom accessor class My form.html <paper-dropdown-menu [(ngModel)]="mymodel.selection" label="Your Fix"> <paper-menu class="dropdown-content"> <paper-item value="1" ngDefaultControl>Coffee</paper-item> <paper-item value="2" ngDefaultControl>Cigarettes</paper-item> <paper-item