:: Home >>

control value

Control's value. Could be used to retrieve the numeric/date value instead of text string. Requires the control format object.

Syntax

var value = obj.getControlValue(); 
obj.setControlValue(value);        

obj.onControlValueChanging = function(value){...}; 
obj.onControlValueChanged = function(value){...}; 
obj.onControlValueError = function(value){...}; 

Defined in

control model

Examples

var date = new AW.Formats.Date;
date.setTextFormat("mmm-d-yy");

var obj = new AW.UI.Input;
obj.setControlFormat(date);
document.write(obj);

obj.onControlValidated = function(){
    alert(this.getControlValue());
};

See also

Control properties: text, format

Comments

No comments yet.
Comments will appear on this page and in the main forum.

Documentation:

Recent changes:

2.5.0 - 2.5.5
2.5.5
2.5.0 - 2.5.4
2.5.4
2.5.0 - 2.5.3
2.5.3
2.5.0 - 2.5.2
2.5.2
2.5, 2.5.1
2.5.1