How to change attributes in a Button

573
1
02-15-2017 07:32 AM
JoseSanchez
Occasional Contributor III

Hello everyone,

Is there a way to change the color and other attributes in a Button?

This is the code I am using in my program:  

require([
"dojo/dom-construct",
"dijit/form/Button",

.......

this.btn = new Button({
label: 'Upload',

onClick: function() {
this.up.upload();
}
}).placeAt(this.form);

Thanks

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Jose,

 Assign the button and id or class and then change it's appearance using a css rule.