61
Name
Type
Description
selectedValue
any
Gets or sets the value of the selectedItem , obtained using
the selectedValuePath.
(inherited from ComboBox).
selectedValuePath
string
Gets or sets the name of the property used to get the selectedValue from
the selectedItem .
(inherited from ComboBox).
showDropDownButton
boolean
Gets or sets a value that indicates whether the control should display a
drop-down button.
(inherited from DropDown).
text
string
Gets or sets the text shown on the control.
(inherited from DropDown).
Methods
Name
Parameters
Description
addEventListener(target, type,
fn, capture?)
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).
od).
Failing to remove event listeners may cause memory leaks.
(inherited from Control).
.
applyTemplate(classNames,
template, parts,
namePart?): HTMLElement
classNames (string): Names
of classes to add to the
control's host element.
template (string): An HTML
string that defines the control
template.
parts (Object): A dictionary
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.