kde-workspace/plasma/scriptengines/webkit/dashboard/button/genericButton.js

8 lines
229 B
JavaScript
Raw Normal View History

2014-11-13 19:30:51 +02:00
function createGenericButton(placeElement,buttonText,clickHandler) {
var b = document.createElement("button");
b.appendChild(document.createTextNode(buttonText));
b.onclick = clickHandler;
placeElement.appendChild(b);
}