Category: Polymer Tutorial

  • Data System

    Polymer allows observing the changes on an element’s properties by taking different actions such as − Data Paths Path is a string in the data system, that provides a property or a sub-property relative to a scope. The scope can be a host element. Paths can be linked to different elements using data binding. Data change…

  • Events

    Events are used by the elements that can communicate with state changes of DOM tree to parent elements and uses the standard DOM APIs for creating, dispatching, and listening for events. The annotated event listeners are used by Polymer, which defines the event listeners as small chunks of DOM template and can be added to DOM children…

  • Shadow DOM and Styling

    Shadow DOM is a new property of DOM used for building components. Example In the following code, the header component includes page title and menu button. Shadow DOM allows locating the children in a scoped subtree, which is known as shadow tree. The shadow-root root is called as the top of shadow tree and the element…

  • Custom Elements

    Polymer is a framework that allows creating custom elements using standard HTML elements. Custom web elements provide the following features − You can define the custom element using ES6 class and class can be associated with the custom element as shown in the following code. The custom element can be used as a standard element…

  • Elements

    Polymer elements are a set of visual and non-visual elements designed to work with the layout, user interaction, selection, and scaffolding applications. These include everything from a simple button to a dialog box with neat visual effects. The following table shows different types of polymer elements. Sr.No. Types & Description 1 app elementsThe app elements…

  • Installation

    It’s easy to configure Polymer in your system. Following are the two ways to install Polymer. Installing Polymer Using Polymer CLI Step 1 − Install Polymer using the following npm command. Step 2 − Check the successful installation and version using the following command. If it has installed successfully, then it will show the version as −…

  • Overview

    Polymer.js is a JavaScript library created by Google that allows reusing the HTML elements for building applications with components. Polymer is an open-source JavaScript library developed by Google developers and was initially released on May 27, 2015. The stable release is 1.7.0 and it was released on September 29, 2016. Why Use Polymer.js? Features of…

  • Tutorial

    Polymer.js is a JavaScript library created by Google that allows reusing the HTML elements for building applications with components. This tutorial covers most of the topics required for a basic understanding of Polymer.js and to get a feel of how it works. Audience This tutorial is designed for software programmers who want to learn the…