Reference Source
public class | source

MaskedTextBox

Represents a ui MaskedTextBox

See:

Constructor Summary

Public Constructor
public

constructor(id: String, options: Object)

Constructor

Method Summary

Public Methods
public

enable(flag: Boolean): Null

enable or disable the MaskedTextBox

public

readonly(flag: Boolean): Null

Toggles the readonly state of the MaskedTextBox.

public

value(text: String): String

Gets or sets the value of the MaskedTextBox.

Public Constructors

public constructor(id: String, options: Object) source

Constructor

Params:

NameTypeAttributeDescription
id String

MaskedTextBox id

options Object

config params

options.mask String

the input mask

options.value String

the value of the MaskedTextBox widget

options.change function(e: Object): null

callback function will run on value change event

Public Methods

public enable(flag: Boolean): Null source

enable or disable the MaskedTextBox

Params:

NameTypeAttributeDescription
flag Boolean

if false, MaskedTextBox will be disabled

Return:

Null

public readonly(flag: Boolean): Null source

Toggles the readonly state of the MaskedTextBox. When the MaskedTextBox is readonly it doesn't allow user input.

Params:

NameTypeAttributeDescription
flag Boolean

If true the MaskedTextBox will not allow user input.

Return:

Null

public value(text: String): String source

Gets or sets the value of the MaskedTextBox.

Params:

NameTypeAttributeDescription
text String

The value to set.

Return:

String

The value of the widget if called without arguments.