Gets or sets the raw value of the control (excluding mask literals).
The raw value of the control excludes prompt and literal characters. For
example, if the mask property is set to "AA-9999" and the user enters the
value "AB-1234", the rawText property will return "AB1234", excluding the
hyphen that is part of the mask.
Gets or sets the text currently shown in the control.
target (EventTarget): Target
element for the event.
type (string): String that
specifies the event.
fn (any): Function to execute
when the event occurs.
capture? (boolean): Whether
the listener is capturing.
(default value: false)
Adds an event listener to an element owned by this Control.
The control keeps a list of attached listeners and their handlers,
making it easier to remove them when the control is disposed (see
the dispose and removeEventListener method).
Failing to remove event listeners may cause memory leaks.
(inherited from Control).
classNames (string): Names of
classes to add to the control's
template (string): An HTML
string that defines the control
parts (Object): A dictionary of
part variables and their names.
namePart? (string): Name of
the part to be named after the
host element. This determines
Applies the template to a new instance of a control, and returns
the root element.
This method should be called by constructors of templated
controls. It is responsible for binding the template parts to the
corresponding control members.
For example, the code below applies a template to an instance of
an InputNumber control. The template must contain elements
with the 'wj-part' attribute set to 'input', 'btn-inc', and 'btn-dec'. The