Does anyone know how to successfully implement a Polymer paper button using JavaScript? Here is what I have attempted:
var newPaperButtonElement = document.createElement('paper-button');
newPaperButtonElement.setAttribute('class','btn');
newPaperButtonElement.setAttribute('on-tap','{{ test}}');
var newCoreIconElement = document.createElement('core-icon');
newCoreIconElement.setAttribute('icon','remove-circle');
newCoreIconElement.setAttribute('class','icon');
newCoreIconElement.setAttribute('style', 'color: rgba(255, 0, 0, 0.42);')
newPaperButtonElement.appendChild(newCoreIconElement);
Unfortunately, the function never gets called and nothing happens. Currently using Polymer 0.5...