dijit._Widget.setAttribute
dojo.require("dijit._Widget");
defined in dijit/_Widget.js
In general, a widget's "value" is controlled via setValue()/getValue(), rather than this method. The exception is for widgets where the end user can't adjust the value, such as Button and CheckBox; in the unusual case that you want to change the value attribute of those widgets, use setAttribute().
Usage
function (/*String*/ attr, value) (view source)
parameter | type | description |
---|---|---|
attr | String | |
value |