úterý 1. prosince 2015

Coach View - how to change a button text and text color in JavaScript

var button;
button = this.context.element.getElementsByTagName("button")[0];
button.firstChild.data = "A new text";

// set the button text color
// using AMD dependency dojo/dom-style alias domStyle
domStyle.set(button,{"color" : color});

Žádné komentáře:

Okomentovat