Drupolymer

Categories

Component ID

2858563

Component name

Drupolymer

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

126

Component created

Component changed

Component body

Making Polymer elements work with the Drupal Form API.

Current supported elements

Installation

  • Install the drupolymer module.
  • Install the drupolymer library (see below)
  • Clear cache, the supported form elements will now be replaced by polymer elements

Install drupolymer library

To utilize the drupolymer libary you need to add drupolymer html import and it's dependencies, as well as the webcomponents-lite.js polyfill to Drupal. The easiest way to do that is with the webcomponents module.

Installing drupolymer library with the webcomponents module

  1. Make sure you have bower installed on your machine
  2. Install the webcomponents module and the webcomponents_polymer submodule
  3. In your active theme, create a directory called polymer
  4. If you don't already have bower.json file create one with bower init
  5. Install the drupolymer library with bower install --save drupolymer
  6. Clear cache