:: Home >>

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

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

Documentation:

Recent changes:

2.5.0 - 2.5.2
2.5.2
2.5, 2.5.1
2.5.1
2.5
Release History
2.5
2.0.2
textToValue
textToData