-
Notifications
You must be signed in to change notification settings - Fork 0
/
template-16.html
83 lines (82 loc) · 86.8 KB
/
template-16.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<link rel="stylesheet" href="./resources/styles/elf-template.css">
<h1 id="scrollbar">Scrollbar</h1>
<div id="elf-api-container"><div id="main-template" class="elf-template"> <section><header> <h1 class="subsection-title"><span class="attribs"><span class="type-signature"></span></span>Scrollbar<span class="signature">()</span><span class="type-signature"></span></h1> </header><article> <div class="container-overview">
<div class="item"> <div class="item-type">class</div> <h4 class="name" id="Scrollbar"><span class="type-signature"></span>new Scrollbar<span class="signature">()</span><span class="type-signature"></span></h4> <div class="details"> </div> </div> </div> <h3 class="subsection-title" id="extends">Extends</h3> <dd class="argument-list"> <ul> <li><a href="#/apis/core/elementwrapper">ElementWrapper</a></li> </ul> </dd> <h3 class="subsection-title" id="methods">Methods</h3>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id=".updateTrackThickness"><span class="type-signature"></span>updateTrackThickness<span class="signature">()</span><span class="type-signature"></span></h4> <div class="details"> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="addClass"><span class="type-signature"></span>addClass<span class="signature">(str)</span><span class="type-signature"></span></h4> <div class="description"> If the given CSS class is already in className, the class is not added twice </div> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">str</div> <div class="type"> <span class="param-type">string</span> </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#addClass">ElementWrapper#addClass</a> </dd> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="addContent"><span class="type-signature"></span>addContent<span class="signature">(content)</span><span class="type-signature"> → {Element}</span></h4> <div class="description"> Append the specified content to the existing children list. Note that string is not acceptableUse setParent() if you just want to put an element into the document. This method is specifically designed for user content, but not for element reordering </div> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">content</div> <div class="type"> <span class="param-type">Element</span> | <span class="param-type">Node</span> | <span class="param-type"><a href="#/apis/core/elementwrapper">ElementWrapper</a></span> </div> <div class="description"> will be appended as a child of this element </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#addContent">ElementWrapper#addContent</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">Element</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="addWheelListener"><span class="type-signature"></span>addWheelListener<span class="signature">(elem)</span><span class="type-signature"></span></h4> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">elem</div> <div class="type"> <span class="param-type">Element</span> </div> <div class="description"> Element that will trigger scrolling by mouse wheel </div> </div> </div> <div class="details"> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="attachToExternalElement"><span class="type-signature"></span>attachToExternalElement<span class="signature">(host)</span><span class="type-signature"></span></h4> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">host</div> <div class="type"> <span class="param-type">Element</span> | <span class="param-type">Node</span> </div> </div> </div> <div class="details"> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="calculateContentSize"><span class="type-signature"></span>calculateContentSize<span class="signature">()</span><span class="type-signature"> → {number}</span></h4> <div class="description"> Must be implemented by the inheritance </div> <div class="details"> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">number</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="disable"><span class="type-signature"></span>disable<span class="signature">(opt_disabled<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">opt_disabled</div> <div class="type"> <span class="param-type">boolean</span> </div> <div class="attributes"> <optional> </div> </div> </div> <div class="details"> <dt class="tag-overrides">Overrides:</dt> <dd class="tag-overrides"> <a href="#/apis/core/elementwrapper#disable">ElementWrapper#disable</a> </dd> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="disableKeyboardInput"><span class="type-signature"></span>disableKeyboardInput<span class="signature">(opt_disabled<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">opt_disabled</div> <div class="type"> <span class="param-type">boolean</span> </div> <div class="attributes"> <optional> </div> </div> </div> <div class="details"> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="disableMouseWheel"><span class="type-signature"></span>disableMouseWheel<span class="signature">(opt_disabled<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">opt_disabled</div> <div class="type"> <span class="param-type">boolean</span> </div> <div class="attributes"> <optional> </div> </div> </div> <div class="details"> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="disableTouchInput"><span class="type-signature"></span>disableTouchInput<span class="signature">(opt_disabled<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">opt_disabled</div> <div class="type"> <span class="param-type">boolean</span> </div> <div class="attributes"> <optional> </div> </div> </div> <div class="details"> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="dispose"><span class="type-signature"></span>dispose<span class="signature">()</span><span class="type-signature"></span></h4> <div class="description"> Calls this method, if it is NO LONGER needed and we want to free up memory.Any usage after disposition will cause exception error </div> <div class="details"> <dt class="tag-overrides">Overrides:</dt> <dd class="tag-overrides"> <a href="#/apis/core/elementwrapper#dispose">ElementWrapper#dispose</a> </dd> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="enable"><span class="type-signature"></span>enable<span class="signature">(opt_enabled<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">opt_enabled</div> <div class="type"> <span class="param-type">boolean</span> </div> <div class="attributes"> <optional> </div> </div> </div> <div class="details"> <dt class="tag-overrides">Overrides:</dt> <dd class="tag-overrides"> <a href="#/apis/core/elementwrapper#enable">ElementWrapper#enable</a> </dd> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="enableClass"><span class="type-signature"></span>enableClass<span class="signature">(str, opt_enabled<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4> <div class="description"> Adds or removes CSS class by specifying "enabled" parameter </div> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">str</div> <div class="type"> <span class="param-type">string</span> </div> <div class="attributes"> </div> </div> <div class="param"> <div class="name">opt_enabled</div> <div class="type"> <span class="param-type">boolean</span> </div> <div class="attributes"> <optional> </div> <div class="description"> Default is true </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#enableClass">ElementWrapper#enableClass</a> </dd> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="fillParentHeight"><span class="type-signature"></span>fillParentHeight<span class="signature">(opt_percent<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {boolean}</span></h4> <div class="description"> Sets height in percentage corresponding to the parent </div> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">opt_percent</div> <div class="type"> <span class="param-type">number</span> </div> <div class="attributes"> <optional> </div> <div class="description"> If not defined, 100% height is used </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#fillParentHeight">ElementWrapper#fillParentHeight</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">boolean</span> </div><div class="sub-content-desc"> true if there is any change, otherwise false</div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="fillParentWidth"><span class="type-signature"></span>fillParentWidth<span class="signature">(opt_percent<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {boolean}</span></h4> <div class="description"> Sets width in percentage corresponding to the parent </div> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">opt_percent</div> <div class="type"> <span class="param-type">number</span> </div> <div class="attributes"> <optional> </div> <div class="description"> If not defined, 100% width is used </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#fillParentWidth">ElementWrapper#fillParentWidth</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">boolean</span> </div><div class="sub-content-desc"> true if there is any change, otherwise false</div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="flash"><span class="type-signature"></span>flash<span class="signature">()</span><span class="type-signature"></span></h4> <div class="details"> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="getAttribute"><span class="type-signature"></span>getAttribute<span class="signature">(str)</span><span class="type-signature"> → {string}</span></h4> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">str</div> <div class="type"> <span class="param-type">string</span> </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#getAttribute">ElementWrapper#getAttribute</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">string</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="getAutoHide"><span class="type-signature"></span>getAutoHide<span class="signature">()</span><span class="type-signature"> → {boolean}</span></h4> <div class="description"> Get scrollbar autohide status </div> <div class="details"> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">boolean</span> </div><div class="sub-content-desc"> true if autohide, false if not</div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="getBoundingClientRect"><span class="type-signature"></span>getBoundingClientRect<span class="signature">()</span><span class="type-signature"> → {Object}</span></h4> <div class="description"> The returned value is a TextRectangle object, which contains read-only left,top, right and bottom properties describing the border-box, in pixels, with the top-leftrelative to the top-left of the viewport. </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#getBoundingClientRect">ElementWrapper#getBoundingClientRect</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">Object</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="getClass"><span class="type-signature"></span>getClass<span class="signature">()</span><span class="type-signature"> → {string}</span></h4> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#getClass">ElementWrapper#getClass</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">string</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="getContent"><span class="type-signature"></span>getContent<span class="signature">(opt_allContent<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {Element|Node|NodeList}</span></h4> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">opt_allContent</div> <div class="type"> <span class="param-type">boolean</span> </div> <div class="attributes"> <optional> </div> <div class="description"> If true all children will be returned </div> </div> </div> <div class="details"> <dt class="tag-overrides">Overrides:</dt> <dd class="tag-overrides"> <a href="#/apis/core/elementwrapper#getContent">ElementWrapper#getContent</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">Element</span> | <span class="param-type">Node</span> | <span class="param-type">NodeList</span> </div><div class="sub-content-desc"> Returns the last child, if there are multiple children. Returns null if there is no child</div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="getContentSize"><span class="type-signature"></span>getContentSize<span class="signature">()</span><span class="type-signature"> → {number}</span></h4> <div class="description"> This is equivalent to scrollHeight or scrollWidth </div> <div class="details"> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">number</span> </div><div class="sub-content-desc"> Content size without zoom factor</div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="getDefaultMouseWheelLogic"><span class="type-signature"></span>getDefaultMouseWheelLogic<span class="signature">()</span><span class="type-signature"> → {function}</span></h4> <div class="details"> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">function</span> </div><div class="sub-content-desc"> Mouse wheel logic that is attached to this instance</div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="getElement"><span class="type-signature"></span>getElement<span class="signature">()</span><span class="type-signature"> → {Element}</span></h4> <div class="description"> Gets top element of this control </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#getElement">ElementWrapper#getElement</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">Element</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="getHeight"><span class="type-signature"></span>getHeight<span class="signature">()</span><span class="type-signature"> → {number}</span></h4> <div class="description"> Gets offsetHeight </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#getHeight">ElementWrapper#getHeight</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">number</span> </div><div class="sub-content-desc"> in pixel</div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="getId"><span class="type-signature"></span>getId<span class="signature">()</span><span class="type-signature"> → {string}</span></h4> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#getId">ElementWrapper#getId</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">string</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="getLeft"><span class="type-signature"></span>getLeft<span class="signature">()</span><span class="type-signature"> → {number}</span></h4> <div class="description"> Gets the left position that is relative to its parent's client area </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#getLeft">ElementWrapper#getLeft</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">number</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="getNextSibling"><span class="type-signature"></span>getNextSibling<span class="signature">()</span><span class="type-signature"> → {Element|Node}</span></h4> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#getNextSibling">ElementWrapper#getNextSibling</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">Element</span> | <span class="param-type">Node</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="getParent"><span class="type-signature"></span>getParent<span class="signature">()</span><span class="type-signature"> → {Element|Node}</span></h4> <div class="details"> <dt class="tag-overrides">Overrides:</dt> <dd class="tag-overrides"> <a href="#/apis/core/elementwrapper#getParent">ElementWrapper#getParent</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">Element</span> | <span class="param-type">Node</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="getScrollGap"><span class="type-signature"></span>getScrollGap<span class="signature">()</span><span class="type-signature"> → {number}</span></h4> <div class="description"> Get available space for scrolling which is equivalent to content size subtracted by view size </div> <div class="details"> <dt class="tag-see">See:</dt> <dd class="tag-see"> <ul> <li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollHeight">scrollHeight</a></li> <li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollWidth">scrollWidth</a></li> </ul> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">number</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="getScrollLeft"><span class="type-signature"></span>getScrollLeft<span class="signature">()</span><span class="type-signature"> → {number}</span></h4> <div class="description"> Note that if element display style is set to "none" or not in the document, scroll value will automatically reset to zero and will not be restored when it is back to visible state </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#getScrollLeft">ElementWrapper#getScrollLeft</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">number</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="getScrollTop"><span class="type-signature"></span>getScrollTop<span class="signature">()</span><span class="type-signature"> → {number}</span></h4> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#getScrollTop">ElementWrapper#getScrollTop</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">number</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="getStyle"><span class="type-signature"></span>getStyle<span class="signature">(str)</span><span class="type-signature"> → {string}</span></h4> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">str</div> <div class="type"> <span class="param-type">string</span> </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#getStyle">ElementWrapper#getStyle</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">string</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="getTextContent"><span class="type-signature"></span>getTextContent<span class="signature">()</span><span class="type-signature"> → {string}</span></h4> <div class="description"> Gets textContent (IE9+) value from this element </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#getTextContent">ElementWrapper#getTextContent</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">string</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="getTooltip"><span class="type-signature"></span>getTooltip<span class="signature">()</span><span class="type-signature"> → {string}</span></h4> <div class="description"> Gets tooltip text from "title" attribute </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#getTooltip">ElementWrapper#getTooltip</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">string</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="getTop"><span class="type-signature"></span>getTop<span class="signature">()</span><span class="type-signature"> → {number}</span></h4> <div class="description"> Gets the top position that is relative to its parent's client area </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#getTop">ElementWrapper#getTop</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">number</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="getTrackSize"><span class="type-signature"></span>getTrackSize<span class="signature">()</span><span class="type-signature"> → {number}</span></h4> <div class="details"> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">number</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="getTrackThickness"><span class="type-signature"></span>getTrackThickness<span class="signature">()</span><span class="type-signature"> → {number}</span></h4> <div class="details"> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">number</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="getWidth"><span class="type-signature"></span>getWidth<span class="signature">()</span><span class="type-signature"> → {number}</span></h4> <div class="description"> Gets offsetWidth </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#getWidth">ElementWrapper#getWidth</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">number</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="hasClass"><span class="type-signature"></span>hasClass<span class="signature">(str)</span><span class="type-signature"> → {boolean}</span></h4> <div class="description"> Checks if the given CSS class is in className of the element </div> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">str</div> <div class="type"> <span class="param-type">string</span> </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#hasClass">ElementWrapper#hasClass</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">boolean</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="hide"><span class="type-signature"></span>hide<span class="signature">(opt_hidden<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4> <div class="description"> Sets display style as inline style to the element with value of "none" </div> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">opt_hidden</div> <div class="type"> <span class="param-type">boolean</span> </div> <div class="attributes"> <optional> </div> <div class="description"> If false the element will be shown </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#hide">ElementWrapper#hide</a> </dd> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="insertAfter"><span class="type-signature"></span>insertAfter<span class="signature">(previousSibling)</span><span class="type-signature"></span></h4> <div class="description"> Inserts this element after the specified sibling. Parent of this element will be changed to sibling's parentIf sibling parent does not exist, nothing is performed.If previousSibling is null, this element will place itself at the end of its parent child list </div> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">previousSibling</div> <div class="type"> <span class="param-type"><a href="#/apis/core/elementwrapper">ElementWrapper</a></span> | <span class="param-type">Element</span> | <span class="param-type">Node</span> </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#insertAfter">ElementWrapper#insertAfter</a> </dd> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="insertBefore"><span class="type-signature"></span>insertBefore<span class="signature">(nextSibling)</span><span class="type-signature"></span></h4> <div class="description"> Inserts this element before the specified sibling. Parent of this element will be changed to sibling's parentIf sibling parent does not exist, nothing is performed.If nextSibling is null, this element will place itself at the end of its parent child list </div> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">nextSibling</div> <div class="type"> <span class="param-type"><a href="#/apis/core/elementwrapper">ElementWrapper</a></span> | <span class="param-type">Element</span> | <span class="param-type">Node</span> </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#insertBefore">ElementWrapper#insertBefore</a> </dd> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="isActive"><span class="type-signature"></span>isActive<span class="signature">()</span><span class="type-signature"> → {boolean}</span></h4> <div class="details"> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">boolean</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="isEnabled"><span class="type-signature"></span>isEnabled<span class="signature">()</span><span class="type-signature"> → {boolean}</span></h4> <div class="details"> <dt class="tag-overrides">Overrides:</dt> <dd class="tag-overrides"> <a href="#/apis/core/elementwrapper#isEnabled">ElementWrapper#isEnabled</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">boolean</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="isEndOfHorizontalScroll"><span class="type-signature"></span>isEndOfHorizontalScroll<span class="signature">()</span><span class="type-signature"> → {boolean}</span></h4> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#isEndOfHorizontalScroll">ElementWrapper#isEndOfHorizontalScroll</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">boolean</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="isEndOfVerticalScroll"><span class="type-signature"></span>isEndOfVerticalScroll<span class="signature">()</span><span class="type-signature"> → {boolean}</span></h4> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#isEndOfVerticalScroll">ElementWrapper#isEndOfVerticalScroll</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">boolean</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="isVisible"><span class="type-signature"></span>isVisible<span class="signature">()</span><span class="type-signature"> → {boolean}</span></h4> <div class="description"> Check to see if display has "none" as a inline style. Note that any change in visibility and class name may not be reflected by the returned value. </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#isVisible">ElementWrapper#isVisible</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">boolean</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="listen"><span class="type-signature"></span>listen<span class="signature">(type, handler, opt_priority<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4> <div class="description"> Add a event listener to either native or custom event provided from the instance. </div> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">type</div> <div class="type"> <span class="param-type">string</span> </div> <div class="attributes"> </div> <div class="description"> All standard HTML element event types are allowed </div> </div> <div class="param"> <div class="name">handler</div> <div class="type"> <span class="param-type">function</span> </div> <div class="attributes"> </div> <div class="description"> Callback method </div> </div> <div class="param"> <div class="name">opt_priority</div> <div class="type"> <span class="param-type">number</span> </div> <div class="attributes"> <optional> </div> <div class="description"> The higher the priority, the sooner the listener get executed. Undefined priority listener will be executed last </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#listen">ElementWrapper#listen</a> </dd> </div> <h5>Example:</h5> <pre><code>var grid = new Grid();
grid.listen("click", function(e) { console.log("Grid is clicked"); });</code></pre> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="removeAttribute"><span class="type-signature"></span>removeAttribute<span class="signature">(str)</span><span class="type-signature"></span></h4> <div class="description"> Completely removes attribute from DOM element for both key and values </div> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">str</div> <div class="type"> <span class="param-type">string</span> </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#removeAttribute">ElementWrapper#removeAttribute</a> </dd> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="removeClass"><span class="type-signature"></span>removeClass<span class="signature">(str)</span><span class="type-signature"></span></h4> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">str</div> <div class="type"> <span class="param-type">string</span> </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#removeClass">ElementWrapper#removeClass</a> </dd> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="removeContent"><span class="type-signature"></span>removeContent<span class="signature">(content)</span><span class="type-signature"> → {boolean}</span></h4> <div class="description"> Removes the specified content from the existing children list </div> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">content</div> <div class="type"> <span class="param-type">Element</span> | <span class="param-type">Node</span> | <span class="param-type"><a href="#/apis/core/elementwrapper">ElementWrapper</a></span> </div> <div class="description"> If null is given, nothing is done </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#removeContent">ElementWrapper#removeContent</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">boolean</span> </div><div class="sub-content-desc"> true if the content is removed</div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="removeWheelListener"><span class="type-signature"></span>removeWheelListener<span class="signature">(elem)</span><span class="type-signature"></span></h4> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">elem</div> <div class="type"> <span class="param-type">Element</span> </div> <div class="description"> Element that will trigger scrolling by mouse wheel </div> </div> </div> <div class="details"> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="setAttribute"><span class="type-signature"></span>setAttribute<span class="signature">(str, val)</span><span class="type-signature"></span></h4> <div class="description"> Sets attribute to DOM element </div> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">str</div> <div class="type"> <span class="param-type">string</span> </div> </div> <div class="param"> <div class="name">val</div> <div class="type"> <span class="param-type">string</span> </div> <div class="description"> Uses empty string ("") to remove the attribute value </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#setAttribute">ElementWrapper#setAttribute</a> </dd> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="setAttributes"><span class="type-signature"></span>setAttributes<span class="signature">(json)</span><span class="type-signature"></span></h4> <div class="description"> Sets multiple attributes all at once </div> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">json</div> <div class="type"> <span class="param-type">Object</span> </div> <div class="description"> Key is the attribute names and value is string value (i.e. "readonly", "50", "checkbox") </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#setAttributes">ElementWrapper#setAttributes</a> </dd> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="setAutoHide"><span class="type-signature"></span>setAutoHide<span class="signature">(hide)</span><span class="type-signature"></span></h4> <div class="description"> Set scrollbar autohide status If set to false, scrollbar will always be shown and no fading </div> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">hide</div> <div class="type"> <span class="param-type">boolean</span> </div> <div class="description"> true if autohide, false if not </div> </div> </div> <div class="details"> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="setClass"><span class="type-signature"></span>setClass<span class="signature">(str)</span><span class="type-signature"></span></h4> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">str</div> <div class="type"> <span class="param-type">string</span> </div> <div class="description"> All existing classes will be placed by this value </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#setClass">ElementWrapper#setClass</a> </dd> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="setContent"><span class="type-signature"></span>setContent<span class="signature">(content, opt_tooltip<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {Element}</span></h4> <div class="description"> Replaces all existing child elements with the specified content. This method automatically converts all non-element to string wrapped with <span> for proper display. </span></div> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">content</div> <div class="type"> <span class="param-type">string</span> | <span class="param-type">Element</span> | <span class="param-type"><a href="#/apis/core/elementwrapper">ElementWrapper</a></span> | <span class="param-type">*</span> </div> <div class="attributes"> </div> <div class="description"> Use null to clear content. If string is given, <span> tag is automatically added to host the string. </div> </div> <div class="param"> <div class="name">opt_tooltip</div> <div class="type"> <span class="param-type">string</span> </div> <div class="attributes"> <optional> </div> <div class="description"> If undefined, content is added without modification. If string is given, it is added to title attribute of the content </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#setContent">ElementWrapper#setContent</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">Element</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="setHeight"><span class="type-signature"></span>setHeight<span class="signature">(val)</span><span class="type-signature"> → {boolean}</span></h4> <div class="description"> For complex sizing, use setStyle("height", "-webkit-calc(100% - 10px)") instead. </div> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">val</div> <div class="type"> <span class="param-type">number</span> </div> <div class="description"> in pixel </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#setHeight">ElementWrapper#setHeight</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">boolean</span> </div><div class="sub-content-desc"> true if there is any change, otherwise false</div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="setId"><span class="type-signature"></span>setId<span class="signature">(val)</span><span class="type-signature"></span></h4> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">val</div> <div class="type"> <span class="param-type">string</span> </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#setId">ElementWrapper#setId</a> </dd> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="setLeft"><span class="type-signature"></span>setLeft<span class="signature">(val)</span><span class="type-signature"> → {boolean}</span></h4> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">val</div> <div class="type"> <span class="param-type">number</span> </div> <div class="description"> in pixel </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#setLeft">ElementWrapper#setLeft</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">boolean</span> </div><div class="sub-content-desc"> true if there is any change, otherwise false</div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="setMouseWheelSpeed"><span class="type-signature"></span>setMouseWheelSpeed<span class="signature">(val)</span><span class="type-signature"></span></h4> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">val</div> <div class="type"> <span class="param-type">string</span> </div> </div> </div> <div class="details"> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="setParent"><span class="type-signature"></span>setParent<span class="signature">(parent, opt_prepend<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">parent</div> <div class="type"> <span class="param-type"><a href="#/apis/core/elementwrapper">ElementWrapper</a></span> | <span class="param-type">Element</span> | <span class="param-type">Node</span> </div> <div class="attributes"> </div> <div class="description"> Uses null to clear parent </div> </div> <div class="param"> <div class="name">opt_prepend</div> <div class="type"> <span class="param-type">boolean</span> </div> <div class="attributes"> <optional> </div> <div class="description"> If false (default), this element is appended to child list of the parent </div> </div> </div> <div class="details"> <dt class="tag-overrides">Overrides:</dt> <dd class="tag-overrides"> <a href="#/apis/core/elementwrapper#setParent">ElementWrapper#setParent</a> </dd> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="setScrollingStep"><span class="type-signature"></span>setScrollingStep<span class="signature">(px)</span><span class="type-signature"></span></h4> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">px</div> <div class="type"> <span class="param-type">number</span> </div> </div> </div> <div class="details"> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="setStyle"><span class="type-signature"></span>setStyle<span class="signature">(str, val)</span><span class="type-signature"></span></h4> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">str</div> <div class="type"> <span class="param-type">string</span> </div> </div> <div class="param"> <div class="name">val</div> <div class="type"> <span class="param-type">string</span> </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#setStyle">ElementWrapper#setStyle</a> </dd> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="setStyles"><span class="type-signature"></span>setStyles<span class="signature">(json)</span><span class="type-signature"></span></h4> <div class="description"> Sets multiple css properties all at once </div> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">json</div> <div class="type"> <span class="param-type">Object</span> </div> <div class="description"> Key is the property names and value is style value (i.e. "center", "#FF00FF", "10px") </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#setStyles">ElementWrapper#setStyles</a> </dd> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="setTextContent"><span class="type-signature"></span>setTextContent<span class="signature">(str)</span><span class="type-signature"></span></h4> <div class="description"> Sets textContent (IE9+) value this will replace all childNodes with a single TextNode </div> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">str</div> <div class="type"> <span class="param-type">string</span> </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#setTextContent">ElementWrapper#setTextContent</a> </dd> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="setTooltip"><span class="type-signature"></span>setTooltip<span class="signature">(str)</span><span class="type-signature"></span></h4> <div class="description"> Sets tooltip text to "title" attribute </div> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">str</div> <div class="type"> <span class="param-type">string</span> </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#setTooltip">ElementWrapper#setTooltip</a> </dd> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="setTop"><span class="type-signature"></span>setTop<span class="signature">(val)</span><span class="type-signature"> → {boolean}</span></h4> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">val</div> <div class="type"> <span class="param-type">number</span> </div> <div class="description"> in pixel </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#setTop">ElementWrapper#setTop</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">boolean</span> </div><div class="sub-content-desc"> ture if there is any change, otherwise false</div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="setTrackSize"><span class="type-signature"></span>setTrackSize<span class="signature">(size, paneSize)</span><span class="type-signature"></span></h4> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">size</div> <div class="type"> <span class="param-type">number</span> </div> </div> <div class="param"> <div class="name">paneSize</div> <div class="type"> <span class="param-type">number</span> </div> </div> </div> <div class="details"> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="setWidth"><span class="type-signature"></span>setWidth<span class="signature">(val)</span><span class="type-signature"> → {boolean}</span></h4> <div class="description"> For complex sizing, use setStyle("width", "-webkit-calc(100% - 10px)") instead. </div> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">val</div> <div class="type"> <span class="param-type">number</span> </div> <div class="description"> in pixel </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#setWidth">ElementWrapper#setWidth</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">boolean</span> </div><div class="sub-content-desc"> true if there is any change, otherwise false</div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="show"><span class="type-signature"></span>show<span class="signature">(opt_shown<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4> <div class="description"> Sets display style as inline style to the element with value of empty string </div> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">opt_shown</div> <div class="type"> <span class="param-type">boolean</span> </div> <div class="attributes"> <optional> </div> <div class="description"> If false the element will be hidden </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#show">ElementWrapper#show</a> </dd> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="toggleClass"><span class="type-signature"></span>toggleClass<span class="signature">(cls, forcedVal<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4> <div class="description"> Toggles the specified class </div> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">cls</div> <div class="type"> <span class="param-type">string</span> </div> <div class="attributes"> </div> </div> <div class="param"> <div class="name">forcedVal</div> <div class="type"> <span class="param-type">boolean</span> | <span class="param-type">null</span> </div> <div class="attributes"> <optional> </div> <div class="description"> If specified, force CSS class state as the specified value </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#toggleClass">ElementWrapper#toggleClass</a> </dd> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="toString"><span class="type-signature"></span>toString<span class="signature">()</span><span class="type-signature"> → {string}</span></h4> <div class="description"> Return a string that represents the object mainly for debugging </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#toString">ElementWrapper#toString</a> </dd> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">string</span> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="unlisten"><span class="type-signature"></span>unlisten<span class="signature">(type, handler)</span><span class="type-signature"></span></h4> <div class="description"> Removes an event listener which was added with listen(). The same function handler must be sent in, or else it will not be removed </div> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">type</div> <div class="type"> <span class="param-type">string</span> </div> <div class="description"> The name of the event without the 'on' prefix. </div> </div> <div class="param"> <div class="name">handler</div> <div class="type"> <span class="param-type">function</span> </div> <div class="description"> The listener function to remove. </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#unlisten">ElementWrapper#unlisten</a> </dd> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="unlistenAll"><span class="type-signature"></span>unlistenAll<span class="signature">(opt_type<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4> <div class="description"> Removes all listeners from an object. If no type is specified, it will remove all listeners that have been registered.You can also optionally remove listeners of a particular type. </div> <h5>Parameters:</h5> <div class="params"> <div class="param"> <div class="name">opt_type</div> <div class="type"> <span class="param-type">string</span> </div> <div class="attributes"> <optional> </div> <div class="description"> Type of event to, default is all types. </div> </div> </div> <div class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"> <a href="#/apis/core/elementwrapper#unlistenAll">ElementWrapper#unlistenAll</a> </dd> </div> </div>
<div class="item"> <div class="item-type">function</div> <h4 class="name" id="update"><span class="type-signature"></span>update<span class="signature">()</span><span class="type-signature"> → {boolean}</span></h4> <div class="details"> </div> <h5>Returns:</h5> <div class="sub-content"> <span class="param-type">boolean</span> </div><div class="sub-content-desc"> Return true if there is any change, otherwise false</div> </div> </article></section></div></div>