Mixin for widgets corresponding to native HTML elements such as <checkbox>
or <button>
,
which can be children of a <form>
node or a dijit/form/Form widget.
Represents a single HTML element. All these widgets should have these attributes just like native HTML input elements. You can set them during widget construction or afterwards, via dijit/_WidgetBase.set().
They also share some common methods.
See the dijit/form/_FormWidgetMixin reference documentation for more information.
Indicates that changes to the value should call onChange() callback. This is false during widget initialization, to avoid calling onChange() when the initial value is set.
Corresponds to the native HTML <input>
element's attribute.
Should this widget respond to user input? In markup, this is specified as "disabled='disabled'", or just "disabled".
Fires onChange for each value change or only on demand
Name used when submitting form; same as "name" attribute or plain HTML elements
On focus, should this widget scroll into view?
Order fields are traversed when user hits the tab key
Corresponds to the native HTML <input>
element's attribute.
Corresponds to the native HTML <input>
element's attribute.
Called when the value of the widget is set. Calls onChange() if appropriate
Parameter | Type | Description |
---|---|---|
newValue | anything | the new value |
priorityChange | Boolean |
Optional For a slider, for example, dragging the slider is priorityChange==false, but on mouse up, it's priorityChange==true. If intermediateChanges==false, onChange is only called form priorityChange=true events. |
Parameter | Type | Description |
---|---|---|
value | Boolean |
Compare 2 values (as returned by get('value') for this widget).
Parameter | Type | Description |
---|---|---|
val1 | anything | |
val2 | anything |
Tells if this widget is focusable or not. Used internally by dijit.
Callback when this widget's value is changed.
Parameter | Type | Description |
---|---|---|
newValue | undefined |