dojox/form/manager/_ValueMixin (version 1.10)

Summary

Form manager's mixin for getting/setting form values in the unified manner.

This mixin adds unified access to form widgets and form elements in terms of name-value regardless of the underlying type of an element. It should be used together with dojox.form.manager.Mixin.

See the dojox/form/manager/_ValueMixin reference documentation for more information.

Method Summary

Methods

elementValue(name,value)

Set or get a form widget/element or an attached point node by name.

Parameter Type Description
name String

The name.

value Object
Optional

Optional. The value to set.

Returns:undefined
gatherFormValues(names)

Collect form values.

Parameter Type Description
names Object
Optional

If it is an array, it is a list of names of form elements to be collected. If it is an object, dictionary keys are names to be collected. If it is omitted, all known form elements are to be collected.

Returns:undefined
setFormValues(values)

Set values to form elements

Parameter Type Description
values Object

A dictionary of key-value pairs.

Returns:function

Set values to form elements

Error in the documentation? Can’t find what you are looking for? Let us know!