57
Name
Type
Description
function loadView() {
pivotPanel.viewDefinition = localStorage.viewDefinition;
}
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).
hod).
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 of part variables and
their names.
namePart? (string): Name of the part to be
named after the host element. This determines
how the control submits data when used in forms.
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
The
template must contain elements with the 'wj-part'
'
attribute set to 'input', 'btn-inc', and 'btn-dec'. The
The