:: Documentation >>

control format

Text/value formats converter object. Could be used to convert the control text (for example, textbox input) to the numeric or date value.

Syntax

var value = obj.getControlFormat(); 
obj.setControlFormat(value);        

obj.onControlFormatChanging = function(value){...}; 
obj.onControlFormatChanged = function(value){...}; 
obj.onControlFormatError = 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, value

Comments

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5