Skip to content Skip to sidebar Skip to footer
Showing posts with the label Web Component

Polymer: Access Polymer Element Objects

I have a polymer element called his-service: Solution 1: Define it outside of the function and th… Read more Polymer: Access Polymer Element Objects

How To Access Custom Element From Within A Linked Javascript File?

If I had a script like this Read more How To Access Custom Element From Within A Linked Javascript File?

Polymer: How To Watch For Change In Properties

I'm just starting to learn Polymer. Here is a generic version of my polymer element: Read more Polymer: How To Watch For Change In Properties

Prototype Not Defined When Accessing Children On Creation Of Custom-tag

__What I am trying todo____ Right now I am working with custom HTML5 tags. I am trying to create a… Read more Prototype Not Defined When Accessing Children On Creation Of Custom-tag

Importing Styles Into A Web Component

What is the canonical way to import styles into a web component? The following gives me an error HT… Read more Importing Styles Into A Web Component

Passing Custom Css To Polymer Element

I would like to be able to pass CSS width to my custom element's shadow DOM. The custom element… Read more Passing Custom Css To Polymer Element

Why Do Pseudoclasses On The Host Element Have To Be Inside Of The Host Function?

I do not understand why pseudo classes like :focus-within need to be within the :host() function br… Read more Why Do Pseudoclasses On The Host Element Have To Be Inside Of The Host Function?

Html Imports Load Order In Internet Explorer

I have a web page that renders some Polymer 1.0 custom elements. In the head section of my index.ht… Read more Html Imports Load Order In Internet Explorer

How To Extend Native Dom Elements Using "is"?

I am trying to using the custom elements spec to extend native DOM elements using the 'is' … Read more How To Extend Native Dom Elements Using "is"?

Html Import Webcomponents Polyfill Not Working In Firefox

I am trying webcomponents in a sample app. Since some of the specs are not included in some browser… Read more Html Import Webcomponents Polyfill Not Working In Firefox

How To Handle Input With Polymer, Without Blue Border Tab Focus?

Edit 2: Keypress events working, on this jsbin: http://jsbin.com/foyile/1/. The problem is, I need … Read more How To Handle Input With Polymer, Without Blue Border Tab Focus?

Can A Custom Element's `connectedcallback` Be Called More Than Once Before `disconnectedcallback` Is Called?

The spec says: However, note that connectedCallback can be called more than once, so any initializ… Read more Can A Custom Element's `connectedcallback` Be Called More Than Once Before `disconnectedcallback` Is Called?

How To Create An Element In Javascript And Pass Parameters To It?

In the new v1 web components spec, you can create a new element by saying like class gg extends HTM… Read more How To Create An Element In Javascript And Pass Parameters To It?

How Deal "connectedcallback May Be Called Once Your Element Is No Longer Connected" Coding A Webcomponent

That statement pasted in my question was copied from https://developer.mozilla.org/en-US/docs/Web/W… Read more How Deal "connectedcallback May Be Called Once Your Element Is No Longer Connected" Coding A Webcomponent

How Do I Traverse Elements Within A Shadow Dom

I have div id=outer #shadowRoot div id=inner button In the click handler of the button, … Read more How Do I Traverse Elements Within A Shadow Dom

Polymer 1.0 On Firefox Referenceerror: Polymer Is Not Defined

Hello I have a working Polymer 1.0 web page on Chrome and Opera. Now I need the page to run in Fire… Read more Polymer 1.0 On Firefox Referenceerror: Polymer Is Not Defined

Javascript Not Executing Inside Shadow Dom

I am working on an application where I've to load other html webpages to current page. Other we… Read more Javascript Not Executing Inside Shadow Dom

Can A Custom Element's `connectedCallback` Be Called More Than Once Before `disconnectedCallback` Is Called?

The spec says: However, note that connectedCallback can be called more than once, so any initializ… Read more Can A Custom Element's `connectedCallback` Be Called More Than Once Before `disconnectedCallback` Is Called?

Polymer Data-binding: How To Access Data In Nested Template?

I want to implement a page containing a paper-tabs, with each tab showing a list of items according… Read more Polymer Data-binding: How To Access Data In Nested Template?

QuerySelector Not Finding Template On HTML Import

I am currently trying to learn how to use web components (without the use of Polymer) using the lat… Read more QuerySelector Not Finding Template On HTML Import