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
- Make sure you have bower installed on your machine
- Install the webcomponents module and the webcomponents_polymer submodule
- In your active theme, create a directory called
polymer - If you don't already have bower.json file create one with
bower init - Install the drupolymer library with
bower install --save drupolymer - Clear cache
