UNPKG

524 kBHTMLView Raw
1<!DOCTYPE html>
2
3<html lang="en">
4<head>
5 <meta charset="utf-8">
6 <meta name="viewport" content="width=device-width">
7 <title>CrossBrowdy API documentation Namespace: CB_Elements</title>
8
9 <!--[if lt IE 9]>
10 <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11 <![endif]-->
12 <link type="text/css" rel="stylesheet" href="styles/sunlight.default.css">
13
14 <link type="text/css" rel="stylesheet" href="styles/site.cosmo.css">
15
16</head>
17
18<body style="min-width:800px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
19
20<div class="navbar navbar-default navbar-fixed-top ">
21<div class="container">
22 <div class="navbar-header">
23 <a class="navbar-brand" href="index.html">CrossBrowdy API documentation</a>
24 <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
25 <span class="icon-bar"></span>
26 <span class="icon-bar"></span>
27 <span class="icon-bar"></span>
28 </button>
29 </div>
30 <div class="navbar-collapse collapse" id="topNavigation">
31 <ul class="nav navbar-nav">
32
33 <li class="dropdown">
34 <a href="namespaces.list.html" class="dropdown-toggle" data-toggle="dropdown">Namespaces<b class="caret"></b></a>
35 <ul class="dropdown-menu inline">
36 <li><a href="CB_Arrays.html">CB_Arrays</a></li><li><a href="CB_AudioDetector.html">CB_AudioDetector</a></li><li><a href="CB_baseSymbols.html">CB_baseSymbols</a></li><li><a href="CB_Client.html">CB_Client</a></li><li><a href="CB_Collisions.html">CB_Collisions</a></li><li><a href="CB_Configuration.html">CB_Configuration</a></li><li><a href="CB_Configuration.CrossBase.html">CB_Configuration.CrossBase</a></li><li><a href="CB_Configuration.CrossBrowdy.html">CB_Configuration.CrossBrowdy</a></li><li><a href="CB_Controllers.html">CB_Controllers</a></li><li><a href="CB_Controllers_Proprietary.html">CB_Controllers_Proprietary</a></li><li><a href="CB_Controllers_Proprietary.WII.html">CB_Controllers_Proprietary.WII</a></li><li><a href="CB_Controllers_Proprietary.WII_U.html">CB_Controllers_Proprietary.WII_U</a></li><li><a href="CB_Device.html">CB_Device</a></li><li><a href="CB_Device.AmbientLight.html">CB_Device.AmbientLight</a></li><li><a href="CB_Device.Battery.html">CB_Device.Battery</a></li><li><a href="CB_Device.Location.html">CB_Device.Location</a></li><li><a href="CB_Device.Motion.html">CB_Device.Motion</a></li><li><a href="CB_Device.Orientation.html">CB_Device.Orientation</a></li><li><a href="CB_Device.Proximity.html">CB_Device.Proximity</a></li><li><a href="CB_Device.Vibration.html">CB_Device.Vibration</a></li><li><a href="CB_Elements.html">CB_Elements</a></li><li><a href="CB_Events.html">CB_Events</a></li><li><a href="CB_Keyboard.html">CB_Keyboard</a></li><li><a href="CB_Keyboard.chars.html">CB_Keyboard.chars</a></li><li><a href="CB_Keyboard.extended.html">CB_Keyboard.extended</a></li><li><a href="CB_Keyboard.keys.html">CB_Keyboard.keys</a></li><li><a href="CB_Modules.html">CB_Modules</a></li><li><a href="CB_Mouse.html">CB_Mouse</a></li><li><a href="CB_Mouse.CursorImage.html">CB_Mouse.CursorImage</a></li><li><a href="CB_Net.html">CB_Net</a></li><li><a href="CB_Net.Fetch.html">CB_Net.Fetch</a></li><li><a href="CB_Net.REST.html">CB_Net.REST</a></li><li><a href="CB_Net.Sockets.html">CB_Net.Sockets</a></li><li><a href="CB_Net.Sockets.SockJS.html">CB_Net.Sockets.SockJS</a></li><li><a href="CB_Net.XHR.html">CB_Net.XHR</a></li><li><a href="CB_Pointer.html">CB_Pointer</a></li><li><a href="CB_Screen.html">CB_Screen</a></li><li><a href="CB_Speaker.html">CB_Speaker</a></li><li><a href="CB_Touch.html">CB_Touch</a></li>
37 </ul>
38 </li>
39
40 <li class="dropdown">
41 <a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b class="caret"></b></a>
42 <ul class="dropdown-menu inline">
43 <li><a href="CB_AudioFile.html">CB_AudioFile</a></li><li><a href="CB_AudioFile_API.AAPI.html">CB_AudioFile_API.AAPI</a></li><li><a href="CB_AudioFile_API.ACMP.html">CB_AudioFile_API.ACMP</a></li><li><a href="CB_AudioFile_API.SM2.html">CB_AudioFile_API.SM2</a></li><li><a href="CB_AudioFile_API.WAAPI.html">CB_AudioFile_API.WAAPI</a></li><li><a href="CB_AudioFileCache.html">CB_AudioFileCache</a></li><li><a href="CB_AudioFileSprites.html">CB_AudioFileSprites</a></li><li><a href="CB_AudioFileSpritesPool.html">CB_AudioFileSpritesPool</a></li><li><a href="CB_Canvas.html">CB_Canvas</a></li><li><a href="CB_GraphicSprites.html">CB_GraphicSprites</a></li><li><a href="CB_GraphicSpritesScene.html">CB_GraphicSpritesScene</a></li>
44 </ul>
45 </li>
46
47 <li class="dropdown">
48 <a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b class="caret"></b></a>
49 <ul class="dropdown-menu inline">
50 <li><a href="global.html#CB_addCredits">CB_addCredits</a></li><li><a href="global.html#CB_BASE_NAME">CB_BASE_NAME</a></li><li><a href="global.html#CB_baseToBase">CB_baseToBase</a></li><li><a href="global.html#CB_baseToInt">CB_baseToInt</a></li><li><a href="global.html#CB_br2nl">CB_br2nl</a></li><li><a href="global.html#CB_brToNl">CB_brToNl</a></li><li><a href="global.html#CB_combineArraysOrObjects">CB_combineArraysOrObjects</a></li><li><a href="global.html#CB_combineAutomatically">CB_combineAutomatically</a></li><li><a href="global.html#CB_combineJSON">CB_combineJSON</a></li><li><a href="global.html#CB_combineURIParameters">CB_combineURIParameters</a></li><li><a href="global.html#CB_combineURLParameters">CB_combineURLParameters</a></li><li><a href="global.html#CB_console">CB_console</a></li><li><a href="global.html#CB_copyObject">CB_copyObject</a></li><li><a href="global.html#CB_countDecimalDigits">CB_countDecimalDigits</a></li><li><a href="global.html#CB_countDecimalPart">CB_countDecimalPart</a></li><li><a href="global.html#CB_countDecimals">CB_countDecimals</a></li><li><a href="global.html#CB_countIntegerDigits">CB_countIntegerDigits</a></li><li><a href="global.html#CB_countIntegerPart">CB_countIntegerPart</a></li><li><a href="global.html#CB_credits">CB_credits</a></li><li><a href="global.html#CB_CREDITS_DEFAULT">CB_CREDITS_DEFAULT</a></li><li><a href="global.html#CB_forceString">CB_forceString</a></li><li><a href="global.html#CB_forEach">CB_forEach</a></li><li><a href="global.html#CB_getBase64StringObject">CB_getBase64StringObject</a></li><li><a href="global.html#CB_getCookie">CB_getCookie</a></li><li><a href="global.html#CB_getDatum">CB_getDatum</a></li><li><a href="global.html#CB_getJSONPropertyValue">CB_getJSONPropertyValue</a></li><li><a href="global.html#CB_getLZStringObject">CB_getLZStringObject</a></li><li><a href="global.html#CB_getValueIndex">CB_getValueIndex</a></li><li><a href="global.html#CB_getValuePath">CB_getValuePath</a></li><li><a href="global.html#CB_includeJSFile">CB_includeJSFile</a></li><li><a href="global.html#CB_indexOf">CB_indexOf</a></li><li><a href="global.html#CB_init">CB_init</a></li><li><a href="global.html#CB_intToBase">CB_intToBase</a></li><li><a href="global.html#CB_isArray">CB_isArray</a></li><li><a href="global.html#CB_isEmail">CB_isEmail</a></li><li><a href="global.html#CB_isFileLocal">CB_isFileLocal</a></li><li><a href="global.html#CB_isString">CB_isString</a></li><li><a href="global.html#CB_lastIndexOf">CB_lastIndexOf</a></li><li><a href="global.html#CB_ltrim">CB_ltrim</a></li><li><a href="global.html#CB_NAME">CB_NAME</a></li><li><a href="global.html#CB_nl2br">CB_nl2br</a></li><li><a href="global.html#CB_nlToBr">CB_nlToBr</a></li><li><a href="global.html#CB_numberFormat">CB_numberFormat</a></li><li><a href="global.html#CB_numberOfDecimalDigits">CB_numberOfDecimalDigits</a></li><li><a href="global.html#CB_numberOfDecimals">CB_numberOfDecimals</a></li><li><a href="global.html#CB_numberOfIntegerDigits">CB_numberOfIntegerDigits</a></li><li><a href="global.html#CB_OPTIONS">CB_OPTIONS</a></li><li><a href="global.html#CB_parseJSON">CB_parseJSON</a></li><li><a href="global.html#CB_parseString">CB_parseString</a></li><li><a href="global.html#CB_regularExpressionString">CB_regularExpressionString</a></li><li><a href="global.html#CB_renderString">CB_renderString</a></li><li><a href="global.html#CB_replaceAll">CB_replaceAll</a></li><li><a href="global.html#CB_rtrim">CB_rtrim</a></li><li><a href="global.html#CB_scriptPath">CB_scriptPath</a></li><li><a href="global.html#CB_scriptPathCalculate">CB_scriptPathCalculate</a></li><li><a href="global.html#CB_setCookie">CB_setCookie</a></li><li><a href="global.html#CB_setDatum">CB_setDatum</a></li><li><a href="global.html#CB_sizeof">CB_sizeof</a></li><li><a href="global.html#CB_sizeOf">CB_sizeOf</a></li><li><a href="global.html#CB_stringifyJSON">CB_stringifyJSON</a></li><li><a href="global.html#CB_symmetricCall">CB_symmetricCall</a></li><li><a href="global.html#CB_symmetricCallClear">CB_symmetricCallClear</a></li><li><a href="global.html#CB_this">CB_this</a></li><li><a href="global.html#CB_trim">CB_trim</a></li><li><a href="global.html#CB_VERSION">CB_VERSION</a></li>
51 </ul>
52 </li>
53
54 </ul>
55
56 <div class="col-sm-3 col-md-3">
57 <form class="navbar-form" role="search">
58 <div class="input-group">
59 <input type="text" class="form-control" placeholder="Search" name="q" id="search-input">
60 <div class="input-group-btn">
61 <button class="btn btn-default" id="search-submit"><i class="glyphicon glyphicon-search"></i></button>
62 </div>
63 </div>
64 </form>
65 </div>
66
67 </div>
68
69</div>
70</div>
71
72
73<div class="container" id="toc-content" style="width:100%;">
74<div class="row" style="width:100%;">
75
76
77 <div class="col-md-8" style="width:85%;">
78
79 <div id="main">
80
81
82
83 <h1 class="page-title">Namespace: CB_Elements</h1>
84
85<section>
86
87<header>
88
89 <h2>
90 CB_Elements
91 </h2>
92
93
94</header>
95
96
97<article>
98 <div class="container-overview">
99
100
101 <div class="description"><p>Static class to manage DOM elements. It will return itself if it is tried to be instantiated.</p></div>
102
103
104
105<dl class="details">
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
136 <dd class="tag-source">
137 <ul class="dummy">
138 <li>
139 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
140 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-14">line 14</a>
141 </li>
142 </ul>
143 </dd>
144
145
146
147
148
149
150
151 <dt class="tag-todo method-doc-label method-doc-details-label">To Do:</dt>
152 <dd class="tag-todo">
153 <ul>
154 <li>Think about creating a function called "add" or "create" to create a new element (it could accept "tagName", "id" and "content" parameters).</li>
155
156 <li>Think about creating "setStyle" and "setStyleById" methods to add a given style attribute and also supporting a boolean parameter to also add the style attribute with vendor prefixes (webkit, moz, ms, o, khtml) if we want to.</li>
157 </ul>
158 </dd>
159
160</dl>
161
162
163
164
165 </div>
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180 <h3 class="subsection-title">Methods</h3>
181
182 <dl>
183
184<hr>
185<dt>
186 <h4 class="name" id=".addClass"><span class="type-signature">&lt;static> </span>addClass<span class="signature">(element, className [, checkValues] [, onAddClass])</span><span class="type-signature"> &rarr; {Node}</span></h4>
187
188
189</dt>
190<dd>
191
192
193 <div class="description">
194 <p>Adds a desired class to a given element. The element can contain other classes and they will be kept.</p>
195 </div>
196
197
198
199
200
201
202
203
204 <h5>Parameters:</h5>
205
206
207<table class="params table table-striped">
208 <thead>
209 <tr>
210
211 <th style="width:12%; min-width:110px;">Name</th>
212
213
214 <th style="width:12%; min-width:110px;">Type</th>
215
216
217 <th style="width:12%; min-width:110px;">Argument</th>
218
219
220
221 <th style="width:12%; min-width:110px;">Default</th>
222
223
224 <th class="last" style="min-width:310px;">Description</th>
225 </tr>
226 </thead>
227
228 <tbody>
229
230
231 <tr>
232
233 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>element</code></td>
234
235
236 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
237
238
239<span class="param-type">Node</span>
240
241
242
243
244 </td>
245
246
247 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
248
249
250
251
252
253 </td>
254
255
256
257 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
258
259 </td>
260
261
262 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The element that will get the new given class.</p></td>
263 </tr>
264
265
266
267 <tr>
268
269 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>className</code></td>
270
271
272 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
273
274
275<span class="param-type">string</span>
276
277
278
279
280 </td>
281
282
283 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
284
285
286
287
288
289 </td>
290
291
292
293 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
294
295 </td>
296
297
298 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The class that will be added.</p></td>
299 </tr>
300
301
302
303 <tr>
304
305 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>checkValues</code></td>
306
307
308 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
309
310
311<span class="param-type">boolean</span>
312
313
314
315
316 </td>
317
318
319 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
320
321 &lt;optional><br>
322
323
324
325
326
327 </td>
328
329
330
331 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
332
333 false
334
335 </td>
336
337
338 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will only try to add the given class if it is not being used already. It is recommended to use true to prevent some old clients from adding the same class multiple times.</p></td>
339 </tr>
340
341
342
343 <tr>
344
345 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onAddClass</code></td>
346
347
348 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
349
350
351<span class="param-type">function</span>
352
353
354
355
356 </td>
357
358
359 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
360
361 &lt;optional><br>
362
363
364
365
366
367 </td>
368
369
370
371 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
372
373 </td>
374
375
376 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Callback function that will be called if the class of the element has been added, after doing it (this will happens always if &quot;checkValues&quot; is false). The first and unique parameter passed will be the affected element itself.</p></td>
377 </tr>
378
379
380 </tbody>
381</table>
382
383
384
385
386<dl class="details">
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
417 <dd class="tag-source">
418 <ul class="dummy">
419 <li>
420 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
421 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1322">line 1322</a>
422 </li>
423 </ul>
424 </dd>
425
426
427
428
429
430
431
432 <dt class="tag-todo method-doc-label method-doc-details-label">To Do:</dt>
433 <dd class="tag-todo">
434 <ul>
435 <li>Think about allowing to use more than once class (and think how many times the "onAddClass" function should be called).</li>
436 </ul>
437 </dd>
438
439</dl>
440
441
442
443
444
445
446
447
448
449
450
451
452
453 <h5>Returns:</h5>
454
455
456<div class="param-desc">
457 <p>Returns the given element again.</p>
458</div>
459
460
461
462<dl>
463 <dt>
464 Type
465 </dt>
466 <dd>
467
468<span class="param-type">Node</span>
469
470
471
472 </dd>
473</dl>
474
475
476
477
478
479</dd>
480
481
482
483<hr>
484<dt>
485 <h4 class="name" id=".addClassById"><span class="type-signature">&lt;static> </span>addClassById<span class="signature">(elementId, className [, checkValues] [, onAddClass])</span><span class="type-signature"> &rarr; {Node|null}</span></h4>
486
487
488</dt>
489<dd>
490
491
492 <div class="description">
493 <p>Adds a desired class to a given element (by its identifier). The element can contain other classes and they will be kept.</p>
494 </div>
495
496
497
498
499
500
501
502
503 <h5>Parameters:</h5>
504
505
506<table class="params table table-striped">
507 <thead>
508 <tr>
509
510 <th style="width:12%; min-width:110px;">Name</th>
511
512
513 <th style="width:12%; min-width:110px;">Type</th>
514
515
516 <th style="width:12%; min-width:110px;">Argument</th>
517
518
519
520 <th style="width:12%; min-width:110px;">Default</th>
521
522
523 <th class="last" style="min-width:310px;">Description</th>
524 </tr>
525 </thead>
526
527 <tbody>
528
529
530 <tr>
531
532 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>elementId</code></td>
533
534
535 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
536
537
538<span class="param-type">string</span>
539
540
541
542
543 </td>
544
545
546 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
547
548
549
550
551
552 </td>
553
554
555
556 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
557
558 </td>
559
560
561 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element that will get the new given class.</p></td>
562 </tr>
563
564
565
566 <tr>
567
568 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>className</code></td>
569
570
571 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
572
573
574<span class="param-type">string</span>
575
576
577
578
579 </td>
580
581
582 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
583
584
585
586
587
588 </td>
589
590
591
592 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
593
594 </td>
595
596
597 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The class that will be added.</p></td>
598 </tr>
599
600
601
602 <tr>
603
604 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>checkValues</code></td>
605
606
607 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
608
609
610<span class="param-type">boolean</span>
611
612
613
614
615 </td>
616
617
618 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
619
620 &lt;optional><br>
621
622
623
624
625
626 </td>
627
628
629
630 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
631
632 false
633
634 </td>
635
636
637 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will only try to add the given class if it is not being used already. It is recommended to use true to prevent some old clients from adding the same class multiple times.</p></td>
638 </tr>
639
640
641
642 <tr>
643
644 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onAddClass</code></td>
645
646
647 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
648
649
650<span class="param-type">function</span>
651
652
653
654
655 </td>
656
657
658 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
659
660 &lt;optional><br>
661
662
663
664
665
666 </td>
667
668
669
670 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
671
672 </td>
673
674
675 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Callback function that will be called if the class of the element has been added, after doing it (this will happens always if &quot;checkValues&quot; is false). The first and unique parameter passed will be the affected element itself.</p></td>
676 </tr>
677
678
679 </tbody>
680</table>
681
682
683
684
685<dl class="details">
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
716 <dd class="tag-source">
717 <ul class="dummy">
718 <li>
719 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
720 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1349">line 1349</a>
721 </li>
722 </ul>
723 </dd>
724
725
726
727
728
729
730
731 <dt class="tag-todo method-doc-label method-doc-details-label">To Do:</dt>
732 <dd class="tag-todo">
733 <ul>
734 <li>Think about allowing to use more than once class (and think how many times the "onAddClass" function should be called).</li>
735 </ul>
736 </dd>
737
738</dl>
739
740
741
742
743
744
745
746
747
748
749
750
751
752 <h5>Returns:</h5>
753
754
755<div class="param-desc">
756 <p>Returns the affected element (if any) or null otherwise.</p>
757</div>
758
759
760
761<dl>
762 <dt>
763 Type
764 </dt>
765 <dd>
766
767<span class="param-type">Node</span>
768|
769
770<span class="param-type">null</span>
771
772
773
774 </dd>
775</dl>
776
777
778
779
780
781</dd>
782
783
784
785<hr>
786<dt>
787 <h4 class="name" id=".appendContent"><span class="type-signature">&lt;static> </span>appendContent<span class="signature">(container, content [, displayValue] [, checkValues] [, computed] [, onContentWritten] [, onShow] [, appendAtBeginning])</span><span class="type-signature"> &rarr; {Node}</span></h4>
788
789
790</dt>
791<dd>
792
793
794 <div class="description">
795 <p>Appends the desired content inside a given element, keeping the existing one (using <a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML">innerHTML</a>). Calls the <a href="CB_Elements.html#.insertContent"><code>CB_Elements.insertContent</code></a> internally.</p>
796 </div>
797
798
799
800
801
802
803
804
805 <h5>Parameters:</h5>
806
807
808<table class="params table table-striped">
809 <thead>
810 <tr>
811
812 <th style="width:12%; min-width:110px;">Name</th>
813
814
815 <th style="width:12%; min-width:110px;">Type</th>
816
817
818 <th style="width:12%; min-width:110px;">Argument</th>
819
820
821
822 <th style="width:12%; min-width:110px;">Default</th>
823
824
825 <th class="last" style="min-width:310px;">Description</th>
826 </tr>
827 </thead>
828
829 <tbody>
830
831
832 <tr>
833
834 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>container</code></td>
835
836
837 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
838
839
840<span class="param-type">Node</span>
841
842
843
844
845 </td>
846
847
848 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
849
850
851
852
853
854 </td>
855
856
857
858 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
859
860 </td>
861
862
863 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The element whose content we want to modify.</p></td>
864 </tr>
865
866
867
868 <tr>
869
870 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>content</code></td>
871
872
873 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
874
875
876<span class="param-type">string</span>
877
878
879
880
881 </td>
882
883
884 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
885
886
887
888
889
890 </td>
891
892
893
894 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
895
896 </td>
897
898
899 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The content that we want to add.</p></td>
900 </tr>
901
902
903
904 <tr>
905
906 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>displayValue</code></td>
907
908
909 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
910
911
912<span class="param-type">string</span>
913
914
915
916
917 </td>
918
919
920 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
921
922 &lt;optional><br>
923
924
925
926
927
928 </td>
929
930
931
932 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
933
934 </td>
935
936
937 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If provided, it will call <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> internally after inserting the content to set the given <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> property to the element.</p></td>
938 </tr>
939
940
941
942 <tr>
943
944 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>checkValues</code></td>
945
946
947 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
948
949
950<span class="param-type">boolean</span>
951
952
953
954
955 </td>
956
957
958 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
959
960 &lt;optional><br>
961
962
963
964
965
966 </td>
967
968
969
970 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
971
972 false
973
974 </td>
975
976
977 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will only change the content if the current one is different from the given one and it will pass the same parameter to <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> if it is called internally (when &quot;displayValue&quot; is given).</p></td>
978 </tr>
979
980
981
982 <tr>
983
984 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
985
986
987 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
988
989
990<span class="param-type">boolean</span>
991
992
993
994
995 </td>
996
997
998 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
999
1000 &lt;optional><br>
1001
1002
1003
1004
1005
1006 </td>
1007
1008
1009
1010 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1011
1012 false
1013
1014 </td>
1015
1016
1017 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If &quot;displayValue&quot; is given, it will pass this parameter to <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> if it is called internally (when &quot;displayValue&quot; is given).</p></td>
1018 </tr>
1019
1020
1021
1022 <tr>
1023
1024 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onContentWritten</code></td>
1025
1026
1027 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1028
1029
1030<span class="param-type">function</span>
1031
1032
1033
1034
1035 </td>
1036
1037
1038 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1039
1040 &lt;optional><br>
1041
1042
1043
1044
1045
1046 </td>
1047
1048
1049
1050 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1051
1052 </td>
1053
1054
1055 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Callback function that will be called if the content has been written, after doing it (this will happens always if &quot;checkValues&quot; is false). The unique parameter passed will be the container itself.</p></td>
1056 </tr>
1057
1058
1059
1060 <tr>
1061
1062 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onShow</code></td>
1063
1064
1065 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1066
1067
1068<span class="param-type">function</span>
1069
1070
1071
1072
1073 </td>
1074
1075
1076 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1077
1078 &lt;optional><br>
1079
1080
1081
1082
1083
1084 </td>
1085
1086
1087
1088 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1089
1090 </td>
1091
1092
1093 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If &quot;displayValue&quot; is given, it will pass this parameter to <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> when it is called internally.</p></td>
1094 </tr>
1095
1096
1097
1098 <tr>
1099
1100 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>appendAtBeginning</code></td>
1101
1102
1103 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1104
1105
1106<span class="param-type">boolean</span>
1107
1108
1109
1110
1111 </td>
1112
1113
1114 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1115
1116 &lt;optional><br>
1117
1118
1119
1120
1121
1122 </td>
1123
1124
1125
1126 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1127
1128 false
1129
1130 </td>
1131
1132
1133 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If set to true, it will append the given content to the existing one instead of overwritten it.</p></td>
1134 </tr>
1135
1136
1137 </tbody>
1138</table>
1139
1140
1141
1142
1143<dl class="details">
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1174 <dd class="tag-source">
1175 <ul class="dummy">
1176 <li>
1177 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
1178 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-833">line 833</a>
1179 </li>
1180 </ul>
1181 </dd>
1182
1183
1184
1185
1186
1187
1188
1189</dl>
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203 <h5>Returns:</h5>
1204
1205
1206<div class="param-desc">
1207 <p>Returns the given container again.</p>
1208</div>
1209
1210
1211
1212<dl>
1213 <dt>
1214 Type
1215 </dt>
1216 <dd>
1217
1218<span class="param-type">Node</span>
1219
1220
1221
1222 </dd>
1223</dl>
1224
1225
1226
1227
1228
1229</dd>
1230
1231
1232
1233<hr>
1234<dt>
1235 <h4 class="name" id=".appendContentBeginning"><span class="type-signature">&lt;static> </span>appendContentBeginning<span class="signature">(container, content [, displayValue] [, checkValues] [, computed] [, onContentWritten] [, onShow])</span><span class="type-signature"> &rarr; {Node}</span></h4>
1236
1237
1238</dt>
1239<dd>
1240
1241
1242 <div class="description">
1243 <p>Appends the desired content inside a given element at the beginning, keeping the existing one (using <a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML">innerHTML</a>). Calls the <a href="CB_Elements.html#.insertContent"><code>CB_Elements.insertContent</code></a> internally.</p>
1244 </div>
1245
1246
1247
1248
1249
1250
1251
1252
1253 <h5>Parameters:</h5>
1254
1255
1256<table class="params table table-striped">
1257 <thead>
1258 <tr>
1259
1260 <th style="width:12%; min-width:110px;">Name</th>
1261
1262
1263 <th style="width:12%; min-width:110px;">Type</th>
1264
1265
1266 <th style="width:12%; min-width:110px;">Argument</th>
1267
1268
1269
1270 <th style="width:12%; min-width:110px;">Default</th>
1271
1272
1273 <th class="last" style="min-width:310px;">Description</th>
1274 </tr>
1275 </thead>
1276
1277 <tbody>
1278
1279
1280 <tr>
1281
1282 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>container</code></td>
1283
1284
1285 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1286
1287
1288<span class="param-type">Node</span>
1289
1290
1291
1292
1293 </td>
1294
1295
1296 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1297
1298
1299
1300
1301
1302 </td>
1303
1304
1305
1306 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1307
1308 </td>
1309
1310
1311 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The element whose content we want to modify.</p></td>
1312 </tr>
1313
1314
1315
1316 <tr>
1317
1318 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>content</code></td>
1319
1320
1321 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1322
1323
1324<span class="param-type">string</span>
1325
1326
1327
1328
1329 </td>
1330
1331
1332 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1333
1334
1335
1336
1337
1338 </td>
1339
1340
1341
1342 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1343
1344 </td>
1345
1346
1347 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The content that we want to add.</p></td>
1348 </tr>
1349
1350
1351
1352 <tr>
1353
1354 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>displayValue</code></td>
1355
1356
1357 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1358
1359
1360<span class="param-type">string</span>
1361
1362
1363
1364
1365 </td>
1366
1367
1368 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1369
1370 &lt;optional><br>
1371
1372
1373
1374
1375
1376 </td>
1377
1378
1379
1380 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1381
1382 </td>
1383
1384
1385 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If provided, it will call <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> internally after inserting the content to set the given <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> property to the element.</p></td>
1386 </tr>
1387
1388
1389
1390 <tr>
1391
1392 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>checkValues</code></td>
1393
1394
1395 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1396
1397
1398<span class="param-type">boolean</span>
1399
1400
1401
1402
1403 </td>
1404
1405
1406 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1407
1408 &lt;optional><br>
1409
1410
1411
1412
1413
1414 </td>
1415
1416
1417
1418 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1419
1420 false
1421
1422 </td>
1423
1424
1425 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will only change the content if the current one is different from the given one and it will pass the same parameter to <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> if it is called internally (when &quot;displayValue&quot; is given).</p></td>
1426 </tr>
1427
1428
1429
1430 <tr>
1431
1432 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
1433
1434
1435 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1436
1437
1438<span class="param-type">boolean</span>
1439
1440
1441
1442
1443 </td>
1444
1445
1446 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1447
1448 &lt;optional><br>
1449
1450
1451
1452
1453
1454 </td>
1455
1456
1457
1458 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1459
1460 false
1461
1462 </td>
1463
1464
1465 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If &quot;displayValue&quot; is given, it will pass this parameter to <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> if it is called internally (when &quot;displayValue&quot; is given).</p></td>
1466 </tr>
1467
1468
1469
1470 <tr>
1471
1472 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onContentWritten</code></td>
1473
1474
1475 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1476
1477
1478<span class="param-type">function</span>
1479
1480
1481
1482
1483 </td>
1484
1485
1486 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1487
1488 &lt;optional><br>
1489
1490
1491
1492
1493
1494 </td>
1495
1496
1497
1498 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1499
1500 </td>
1501
1502
1503 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Callback function that will be called if the content has been written, after doing it (this will happens always if &quot;checkValues&quot; is false). The unique parameter passed will be the container itself.</p></td>
1504 </tr>
1505
1506
1507
1508 <tr>
1509
1510 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onShow</code></td>
1511
1512
1513 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1514
1515
1516<span class="param-type">function</span>
1517
1518
1519
1520
1521 </td>
1522
1523
1524 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1525
1526 &lt;optional><br>
1527
1528
1529
1530
1531
1532 </td>
1533
1534
1535
1536 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1537
1538 </td>
1539
1540
1541 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If &quot;displayValue&quot; is given, it will pass this parameter to <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> when it is called internally.</p></td>
1542 </tr>
1543
1544
1545 </tbody>
1546</table>
1547
1548
1549
1550
1551<dl class="details">
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1582 <dd class="tag-source">
1583 <ul class="dummy">
1584 <li>
1585 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
1586 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-851">line 851</a>
1587 </li>
1588 </ul>
1589 </dd>
1590
1591
1592
1593
1594
1595
1596
1597</dl>
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611 <h5>Returns:</h5>
1612
1613
1614<div class="param-desc">
1615 <p>Returns the given container again.</p>
1616</div>
1617
1618
1619
1620<dl>
1621 <dt>
1622 Type
1623 </dt>
1624 <dd>
1625
1626<span class="param-type">Node</span>
1627
1628
1629
1630 </dd>
1631</dl>
1632
1633
1634
1635
1636
1637</dd>
1638
1639
1640
1641<hr>
1642<dt>
1643 <h4 class="name" id=".appendContentById"><span class="type-signature">&lt;static> </span>appendContentById<span class="signature">(containerId, content [, displayValue] [, checkValues] [, computed] [, onContentWritten] [, onShow] [, append] [, appendAtBeginning])</span><span class="type-signature"> &rarr; {Node|null}</span></h4>
1644
1645
1646</dt>
1647<dd>
1648
1649
1650 <div class="description">
1651 <p>Appends the desired content inside a given element, keeping the existing one (using <a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML">innerHTML</a>), by its identifier. Calls the <a href="CB_Elements.html#.insertContent"><code>CB_Elements.insertContent</code></a> internally.</p>
1652 </div>
1653
1654
1655
1656
1657
1658
1659
1660
1661 <h5>Parameters:</h5>
1662
1663
1664<table class="params table table-striped">
1665 <thead>
1666 <tr>
1667
1668 <th style="width:12%; min-width:110px;">Name</th>
1669
1670
1671 <th style="width:12%; min-width:110px;">Type</th>
1672
1673
1674 <th style="width:12%; min-width:110px;">Argument</th>
1675
1676
1677
1678 <th style="width:12%; min-width:110px;">Default</th>
1679
1680
1681 <th class="last" style="min-width:310px;">Description</th>
1682 </tr>
1683 </thead>
1684
1685 <tbody>
1686
1687
1688 <tr>
1689
1690 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>containerId</code></td>
1691
1692
1693 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1694
1695
1696<span class="param-type">string</span>
1697
1698
1699
1700
1701 </td>
1702
1703
1704 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1705
1706
1707
1708
1709
1710 </td>
1711
1712
1713
1714 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1715
1716 </td>
1717
1718
1719 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element whose content we want to modify.</p></td>
1720 </tr>
1721
1722
1723
1724 <tr>
1725
1726 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>content</code></td>
1727
1728
1729 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1730
1731
1732<span class="param-type">string</span>
1733
1734
1735
1736
1737 </td>
1738
1739
1740 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1741
1742
1743
1744
1745
1746 </td>
1747
1748
1749
1750 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1751
1752 </td>
1753
1754
1755 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The content that we want to add.</p></td>
1756 </tr>
1757
1758
1759
1760 <tr>
1761
1762 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>displayValue</code></td>
1763
1764
1765 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1766
1767
1768<span class="param-type">string</span>
1769
1770
1771
1772
1773 </td>
1774
1775
1776 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1777
1778 &lt;optional><br>
1779
1780
1781
1782
1783
1784 </td>
1785
1786
1787
1788 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1789
1790 </td>
1791
1792
1793 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If provided, it will call <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> internally after inserting the content to set the given <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> property to the element.</p></td>
1794 </tr>
1795
1796
1797
1798 <tr>
1799
1800 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>checkValues</code></td>
1801
1802
1803 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1804
1805
1806<span class="param-type">boolean</span>
1807
1808
1809
1810
1811 </td>
1812
1813
1814 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1815
1816 &lt;optional><br>
1817
1818
1819
1820
1821
1822 </td>
1823
1824
1825
1826 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1827
1828 false
1829
1830 </td>
1831
1832
1833 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will only change the content if the current one is different from the given one and it will pass the same parameter to <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> if it is called internally (when &quot;displayValue&quot; is given).</p></td>
1834 </tr>
1835
1836
1837
1838 <tr>
1839
1840 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
1841
1842
1843 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1844
1845
1846<span class="param-type">boolean</span>
1847
1848
1849
1850
1851 </td>
1852
1853
1854 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1855
1856 &lt;optional><br>
1857
1858
1859
1860
1861
1862 </td>
1863
1864
1865
1866 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1867
1868 false
1869
1870 </td>
1871
1872
1873 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If &quot;displayValue&quot; is given, it will pass this parameter to <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> if it is called internally (when &quot;displayValue&quot; is given).</p></td>
1874 </tr>
1875
1876
1877
1878 <tr>
1879
1880 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onContentWritten</code></td>
1881
1882
1883 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1884
1885
1886<span class="param-type">function</span>
1887
1888
1889
1890
1891 </td>
1892
1893
1894 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1895
1896 &lt;optional><br>
1897
1898
1899
1900
1901
1902 </td>
1903
1904
1905
1906 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1907
1908 </td>
1909
1910
1911 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Callback function that will be called if the content has been written, after doing it (this will happens always if &quot;checkValues&quot; is false). The unique parameter passed will be the affected container itself.</p></td>
1912 </tr>
1913
1914
1915
1916 <tr>
1917
1918 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onShow</code></td>
1919
1920
1921 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1922
1923
1924<span class="param-type">function</span>
1925
1926
1927
1928
1929 </td>
1930
1931
1932 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1933
1934 &lt;optional><br>
1935
1936
1937
1938
1939
1940 </td>
1941
1942
1943
1944 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1945
1946 </td>
1947
1948
1949 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If &quot;displayValue&quot; is given, it will pass this parameter to <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> when it is called internally.</p></td>
1950 </tr>
1951
1952
1953
1954 <tr>
1955
1956 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>append</code></td>
1957
1958
1959 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1960
1961
1962<span class="param-type">boolean</span>
1963
1964
1965
1966
1967 </td>
1968
1969
1970 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1971
1972 &lt;optional><br>
1973
1974
1975
1976
1977
1978 </td>
1979
1980
1981
1982 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1983
1984 false
1985
1986 </td>
1987
1988
1989 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If set to true, it will append the given content to the existing one instead of overwritten it. By default, it appends it at the end unless that the &quot;appendAtBeginning&quot; is set to true.</p></td>
1990 </tr>
1991
1992
1993
1994 <tr>
1995
1996 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>appendAtBeginning</code></td>
1997
1998
1999 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2000
2001
2002<span class="param-type">boolean</span>
2003
2004
2005
2006
2007 </td>
2008
2009
2010 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2011
2012 &lt;optional><br>
2013
2014
2015
2016
2017
2018 </td>
2019
2020
2021
2022 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2023
2024 false
2025
2026 </td>
2027
2028
2029 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If set to true, it will append the given content to the existing one instead of overwritten it.</p></td>
2030 </tr>
2031
2032
2033 </tbody>
2034</table>
2035
2036
2037
2038
2039<dl class="details">
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
2070 <dd class="tag-source">
2071 <ul class="dummy">
2072 <li>
2073 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
2074 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-891">line 891</a>
2075 </li>
2076 </ul>
2077 </dd>
2078
2079
2080
2081
2082
2083
2084
2085</dl>
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099 <h5>Returns:</h5>
2100
2101
2102<div class="param-desc">
2103 <p>Returns the affected container (if any) or null otherwise.</p>
2104</div>
2105
2106
2107
2108<dl>
2109 <dt>
2110 Type
2111 </dt>
2112 <dd>
2113
2114<span class="param-type">Node</span>
2115|
2116
2117<span class="param-type">null</span>
2118
2119
2120
2121 </dd>
2122</dl>
2123
2124
2125
2126
2127
2128</dd>
2129
2130
2131
2132<hr>
2133<dt>
2134 <h4 class="name" id=".appendContentByIdBeginning"><span class="type-signature">&lt;static> </span>appendContentByIdBeginning<span class="signature">(containerId, content [, displayValue] [, checkValues] [, computed] [, onContentWritten] [, onShow] [, append])</span><span class="type-signature"> &rarr; {Node|null}</span></h4>
2135
2136
2137</dt>
2138<dd>
2139
2140
2141 <div class="description">
2142 <p>Appends the desired content inside a given element at the beginning, keeping the existing one (using <a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML">innerHTML</a>), by its identifier. Calls the <a href="CB_Elements.html#.insertContent"><code>CB_Elements.insertContent</code></a> internally.</p>
2143 </div>
2144
2145
2146
2147
2148
2149
2150
2151
2152 <h5>Parameters:</h5>
2153
2154
2155<table class="params table table-striped">
2156 <thead>
2157 <tr>
2158
2159 <th style="width:12%; min-width:110px;">Name</th>
2160
2161
2162 <th style="width:12%; min-width:110px;">Type</th>
2163
2164
2165 <th style="width:12%; min-width:110px;">Argument</th>
2166
2167
2168
2169 <th style="width:12%; min-width:110px;">Default</th>
2170
2171
2172 <th class="last" style="min-width:310px;">Description</th>
2173 </tr>
2174 </thead>
2175
2176 <tbody>
2177
2178
2179 <tr>
2180
2181 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>containerId</code></td>
2182
2183
2184 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2185
2186
2187<span class="param-type">string</span>
2188
2189
2190
2191
2192 </td>
2193
2194
2195 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2196
2197
2198
2199
2200
2201 </td>
2202
2203
2204
2205 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2206
2207 </td>
2208
2209
2210 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element whose content we want to modify.</p></td>
2211 </tr>
2212
2213
2214
2215 <tr>
2216
2217 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>content</code></td>
2218
2219
2220 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2221
2222
2223<span class="param-type">string</span>
2224
2225
2226
2227
2228 </td>
2229
2230
2231 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2232
2233
2234
2235
2236
2237 </td>
2238
2239
2240
2241 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2242
2243 </td>
2244
2245
2246 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The content that we want to add.</p></td>
2247 </tr>
2248
2249
2250
2251 <tr>
2252
2253 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>displayValue</code></td>
2254
2255
2256 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2257
2258
2259<span class="param-type">string</span>
2260
2261
2262
2263
2264 </td>
2265
2266
2267 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2268
2269 &lt;optional><br>
2270
2271
2272
2273
2274
2275 </td>
2276
2277
2278
2279 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2280
2281 </td>
2282
2283
2284 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If provided, it will call <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> internally after inserting the content to set the given <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> property to the element.</p></td>
2285 </tr>
2286
2287
2288
2289 <tr>
2290
2291 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>checkValues</code></td>
2292
2293
2294 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2295
2296
2297<span class="param-type">boolean</span>
2298
2299
2300
2301
2302 </td>
2303
2304
2305 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2306
2307 &lt;optional><br>
2308
2309
2310
2311
2312
2313 </td>
2314
2315
2316
2317 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2318
2319 false
2320
2321 </td>
2322
2323
2324 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will only change the content if the current one is different from the given one and it will pass the same parameter to <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> if it is called internally (when &quot;displayValue&quot; is given).</p></td>
2325 </tr>
2326
2327
2328
2329 <tr>
2330
2331 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
2332
2333
2334 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2335
2336
2337<span class="param-type">boolean</span>
2338
2339
2340
2341
2342 </td>
2343
2344
2345 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2346
2347 &lt;optional><br>
2348
2349
2350
2351
2352
2353 </td>
2354
2355
2356
2357 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2358
2359 false
2360
2361 </td>
2362
2363
2364 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If &quot;displayValue&quot; is given, it will pass this parameter to <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> if it is called internally (when &quot;displayValue&quot; is given).</p></td>
2365 </tr>
2366
2367
2368
2369 <tr>
2370
2371 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onContentWritten</code></td>
2372
2373
2374 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2375
2376
2377<span class="param-type">function</span>
2378
2379
2380
2381
2382 </td>
2383
2384
2385 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2386
2387 &lt;optional><br>
2388
2389
2390
2391
2392
2393 </td>
2394
2395
2396
2397 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2398
2399 </td>
2400
2401
2402 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Callback function that will be called if the content has been written, after doing it (this will happens always if &quot;checkValues&quot; is false). The unique parameter passed will be the affected container itself.</p></td>
2403 </tr>
2404
2405
2406
2407 <tr>
2408
2409 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onShow</code></td>
2410
2411
2412 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2413
2414
2415<span class="param-type">function</span>
2416
2417
2418
2419
2420 </td>
2421
2422
2423 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2424
2425 &lt;optional><br>
2426
2427
2428
2429
2430
2431 </td>
2432
2433
2434
2435 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2436
2437 </td>
2438
2439
2440 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If &quot;displayValue&quot; is given, it will pass this parameter to <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> when it is called internally.</p></td>
2441 </tr>
2442
2443
2444
2445 <tr>
2446
2447 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>append</code></td>
2448
2449
2450 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2451
2452
2453<span class="param-type">boolean</span>
2454
2455
2456
2457
2458 </td>
2459
2460
2461 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2462
2463 &lt;optional><br>
2464
2465
2466
2467
2468
2469 </td>
2470
2471
2472
2473 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2474
2475 false
2476
2477 </td>
2478
2479
2480 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If set to true, it will append the given content to the existing one instead of overwritten it. By default, it appends it at the end unless that the &quot;appendAtBeginning&quot; is set to true.</p></td>
2481 </tr>
2482
2483
2484 </tbody>
2485</table>
2486
2487
2488
2489
2490<dl class="details">
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
2521 <dd class="tag-source">
2522 <ul class="dummy">
2523 <li>
2524 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
2525 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-910">line 910</a>
2526 </li>
2527 </ul>
2528 </dd>
2529
2530
2531
2532
2533
2534
2535
2536</dl>
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550 <h5>Returns:</h5>
2551
2552
2553<div class="param-desc">
2554 <p>Returns the affected container (if any) or null otherwise.</p>
2555</div>
2556
2557
2558
2559<dl>
2560 <dt>
2561 Type
2562 </dt>
2563 <dd>
2564
2565<span class="param-type">Node</span>
2566|
2567
2568<span class="param-type">null</span>
2569
2570
2571
2572 </dd>
2573</dl>
2574
2575
2576
2577
2578
2579</dd>
2580
2581
2582
2583<hr>
2584<dt>
2585 <h4 class="name" id=".byId"><span class="type-signature">&lt;static> </span>byId<span class="signature">()</span><span class="type-signature"></span></h4>
2586
2587
2588</dt>
2589<dd>
2590
2591
2592 <div class="description">
2593 <p>Alias for <a href="CB_Elements.html#.id"><code>CB_Elements.id</code></a>.</p>
2594 </div>
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605<dl class="details">
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
2636 <dd class="tag-source">
2637 <ul class="dummy">
2638 <li>
2639 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
2640 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-521">line 521</a>
2641 </li>
2642 </ul>
2643 </dd>
2644
2645
2646
2647
2648
2649 <dt class="tag-see method-doc-label method-doc-details-label">See:</dt>
2650 <dd class="tag-see">
2651 <ul>
2652 <li><a href="CB_Elements.html#.id"><code>CB_Elements.id</code></a></li>
2653 </ul>
2654 </dd>
2655
2656
2657
2658</dl>
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674</dd>
2675
2676
2677
2678<hr>
2679<dt>
2680 <h4 class="name" id=".classes"><span class="type-signature">&lt;static> </span>classes<span class="signature">(classNames [, baseElement] [, useCache])</span><span class="type-signature"> &rarr; {NodeList|array}</span></h4>
2681
2682
2683</dt>
2684<dd>
2685
2686
2687 <div class="description">
2688 <p>Returns elements by their class or classes name.</p>
2689 </div>
2690
2691
2692
2693
2694
2695
2696
2697
2698 <h5>Parameters:</h5>
2699
2700
2701<table class="params table table-striped">
2702 <thead>
2703 <tr>
2704
2705 <th style="width:12%; min-width:110px;">Name</th>
2706
2707
2708 <th style="width:12%; min-width:110px;">Type</th>
2709
2710
2711 <th style="width:12%; min-width:110px;">Argument</th>
2712
2713
2714
2715 <th style="width:12%; min-width:110px;">Default</th>
2716
2717
2718 <th class="last" style="min-width:310px;">Description</th>
2719 </tr>
2720 </thead>
2721
2722 <tbody>
2723
2724
2725 <tr>
2726
2727 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>classNames</code></td>
2728
2729
2730 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2731
2732
2733<span class="param-type">string</span>
2734
2735
2736
2737
2738 </td>
2739
2740
2741 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2742
2743
2744
2745
2746
2747 </td>
2748
2749
2750
2751 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2752
2753 </td>
2754
2755
2756 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The name of the class or classes (separated by a blank space) whose elements we want to find. The order of the classes is just important for the internal cache.</p></td>
2757 </tr>
2758
2759
2760
2761 <tr>
2762
2763 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>baseElement</code></td>
2764
2765
2766 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2767
2768
2769<span class="param-type">Node</span>
2770
2771
2772
2773
2774 </td>
2775
2776
2777 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2778
2779 &lt;optional><br>
2780
2781
2782
2783
2784
2785 </td>
2786
2787
2788
2789 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2790
2791 document
2792
2793 </td>
2794
2795
2796 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The node element parent where we want to focus our search.</p></td>
2797 </tr>
2798
2799
2800
2801 <tr>
2802
2803 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>useCache</code></td>
2804
2805
2806 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2807
2808
2809<span class="param-type">boolean</span>
2810
2811
2812
2813
2814 </td>
2815
2816
2817 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2818
2819 &lt;optional><br>
2820
2821
2822
2823
2824
2825 </td>
2826
2827
2828
2829 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2830
2831 <a href="CB_Configuration.CrossBase.html#.CB_Elements_classes_USE_CACHE"><code>CB_Configuration.CrossBase.CB_Elements_classes_USE_CACHE</code></a>
2832
2833 </td>
2834
2835
2836 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Defines whether to try to get the result from an internal cache (it will exist if we previously called the function with the same parameters) or not. The internal cache will be updated when this parameter is set to false or it will be created automatically when it did not exist before.</p></td>
2837 </tr>
2838
2839
2840 </tbody>
2841</table>
2842
2843
2844
2845
2846<dl class="details">
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
2877 <dd class="tag-source">
2878 <ul class="dummy">
2879 <li>
2880 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
2881 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-274">line 274</a>
2882 </li>
2883 </ul>
2884 </dd>
2885
2886
2887
2888
2889
2890
2891
2892</dl>
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906 <h5>Returns:</h5>
2907
2908
2909<div class="param-desc">
2910 <p>Returns the elements (NodeList or array, depending on the web client).</p>
2911</div>
2912
2913
2914
2915<dl>
2916 <dt>
2917 Type
2918 </dt>
2919 <dd>
2920
2921<span class="param-type">NodeList</span>
2922|
2923
2924<span class="param-type">array</span>
2925
2926
2927
2928 </dd>
2929</dl>
2930
2931
2932
2933
2934
2935</dd>
2936
2937
2938
2939<hr>
2940<dt>
2941 <h4 class="name" id=".classesCacheClear"><span class="type-signature">&lt;static> </span>classesCacheClear<span class="signature">( [classNames] [, baseElement])</span><span class="type-signature"> &rarr; {Object}</span></h4>
2942
2943
2944</dt>
2945<dd>
2946
2947
2948 <div class="description">
2949 <p>Clears the internal cache used by <a href="CB_Elements.html#.classes"><code>CB_Elements.classes</code></a> and others. If no parameter is given, whole internal cache will be cleared.</p>
2950 </div>
2951
2952
2953
2954
2955
2956
2957
2958
2959 <h5>Parameters:</h5>
2960
2961
2962<table class="params table table-striped">
2963 <thead>
2964 <tr>
2965
2966 <th style="width:12%; min-width:110px;">Name</th>
2967
2968
2969 <th style="width:12%; min-width:110px;">Type</th>
2970
2971
2972 <th style="width:12%; min-width:110px;">Argument</th>
2973
2974
2975
2976
2977 <th class="last" style="min-width:310px;">Description</th>
2978 </tr>
2979 </thead>
2980
2981 <tbody>
2982
2983
2984 <tr>
2985
2986 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>classNames</code></td>
2987
2988
2989 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2990
2991
2992<span class="param-type">string</span>
2993
2994
2995
2996
2997 </td>
2998
2999
3000 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3001
3002 &lt;optional><br>
3003
3004
3005
3006
3007
3008 </td>
3009
3010
3011
3012
3013 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The name of the class or classes (separated by a blank space) whose internal cache we want to clear. The order of the classes is important for the internal cache. If not provided, it will clear the whole internal cache or the internal cache that belongs to the &quot;baseElement&quot; given (if provided).</p></td>
3014 </tr>
3015
3016
3017
3018 <tr>
3019
3020 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>baseElement</code></td>
3021
3022
3023 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3024
3025
3026<span class="param-type">Node</span>
3027
3028
3029
3030
3031 </td>
3032
3033
3034 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3035
3036 &lt;optional><br>
3037
3038
3039
3040
3041
3042 </td>
3043
3044
3045
3046
3047 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The node element parent whose internal cache we want to clear. If not provided but &quot;classNames&quot; is provided, it will clear the internal cache which matches the given &quot;classNames&quot; for any nodes. If it is provided but &quot;classNames&quot; is not, it will clear all the internal cache that belongs to this node element.</p></td>
3048 </tr>
3049
3050
3051 </tbody>
3052</table>
3053
3054
3055
3056
3057<dl class="details">
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
3088 <dd class="tag-source">
3089 <ul class="dummy">
3090 <li>
3091 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
3092 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-440">line 440</a>
3093 </li>
3094 </ul>
3095 </dd>
3096
3097
3098
3099
3100
3101
3102
3103</dl>
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117 <h5>Returns:</h5>
3118
3119
3120<div class="param-desc">
3121 <p>Returns the current internal cache after cleaning it (if it is has been possible), which is an associative array of two dimensions (JavaScript object) whose first index belongs to the nodes, the second and last index belongs to the class name or class names and the value belongs to the returning value of the <a href="CB_Elements.html#.classes"><code>CB_Elements.classes</code></a> function when it was called for those parameters.</p>
3122</div>
3123
3124
3125
3126<dl>
3127 <dt>
3128 Type
3129 </dt>
3130 <dd>
3131
3132<span class="param-type">Object</span>
3133
3134
3135
3136 </dd>
3137</dl>
3138
3139
3140
3141
3142
3143</dd>
3144
3145
3146
3147<hr>
3148<dt>
3149 <h4 class="name" id=".classesCacheUpdate"><span class="type-signature">&lt;static> </span>classesCacheUpdate<span class="signature">(classNames [, baseElement])</span><span class="type-signature"> &rarr; {NodeList|array}</span></h4>
3150
3151
3152</dt>
3153<dd>
3154
3155
3156 <div class="description">
3157 <p>Returns elements by their class or classes name, updating (or creating) the internal cache. Calls the <a href="CB_Elements.html#.classes"><code>CB_Elements.classes</code></a> function internally, with the &quot;useCache&quot; parameter set to false.</p>
3158 </div>
3159
3160
3161
3162
3163
3164
3165
3166
3167 <h5>Parameters:</h5>
3168
3169
3170<table class="params table table-striped">
3171 <thead>
3172 <tr>
3173
3174 <th style="width:12%; min-width:110px;">Name</th>
3175
3176
3177 <th style="width:12%; min-width:110px;">Type</th>
3178
3179
3180 <th style="width:12%; min-width:110px;">Argument</th>
3181
3182
3183
3184 <th style="width:12%; min-width:110px;">Default</th>
3185
3186
3187 <th class="last" style="min-width:310px;">Description</th>
3188 </tr>
3189 </thead>
3190
3191 <tbody>
3192
3193
3194 <tr>
3195
3196 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>classNames</code></td>
3197
3198
3199 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3200
3201
3202<span class="param-type">string</span>
3203
3204
3205
3206
3207 </td>
3208
3209
3210 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3211
3212
3213
3214
3215
3216 </td>
3217
3218
3219
3220 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3221
3222 </td>
3223
3224
3225 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The name of the class or classes (separated by a blank space) whose elements we want to find. The order of the classes is just important for the internal cache.</p></td>
3226 </tr>
3227
3228
3229
3230 <tr>
3231
3232 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>baseElement</code></td>
3233
3234
3235 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3236
3237
3238<span class="param-type">Node</span>
3239
3240
3241
3242
3243 </td>
3244
3245
3246 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3247
3248 &lt;optional><br>
3249
3250
3251
3252
3253
3254 </td>
3255
3256
3257
3258 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3259
3260 document
3261
3262 </td>
3263
3264
3265 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The node element parent where we want to focus our search.</p></td>
3266 </tr>
3267
3268
3269 </tbody>
3270</table>
3271
3272
3273
3274
3275<dl class="details">
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
3306 <dd class="tag-source">
3307 <ul class="dummy">
3308 <li>
3309 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
3310 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-427">line 427</a>
3311 </li>
3312 </ul>
3313 </dd>
3314
3315
3316
3317
3318
3319
3320
3321</dl>
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335 <h5>Returns:</h5>
3336
3337
3338<div class="param-desc">
3339 <p>Returns the elements (NodeList or array, depending on the web client).</p>
3340</div>
3341
3342
3343
3344<dl>
3345 <dt>
3346 Type
3347 </dt>
3348 <dd>
3349
3350<span class="param-type">NodeList</span>
3351|
3352
3353<span class="param-type">array</span>
3354
3355
3356
3357 </dd>
3358</dl>
3359
3360
3361
3362
3363
3364</dd>
3365
3366
3367
3368<hr>
3369<dt>
3370 <h4 class="name" id=".classesRemove"><span class="type-signature">&lt;static> </span>classesRemove<span class="signature">(classNames [, baseElement] [, useCache])</span><span class="type-signature"></span></h4>
3371
3372
3373</dt>
3374<dd>
3375
3376
3377 <div class="description">
3378 <p>Removes elements by their class or classes name.</p>
3379 </div>
3380
3381
3382
3383
3384
3385
3386
3387
3388 <h5>Parameters:</h5>
3389
3390
3391<table class="params table table-striped">
3392 <thead>
3393 <tr>
3394
3395 <th style="width:12%; min-width:110px;">Name</th>
3396
3397
3398 <th style="width:12%; min-width:110px;">Type</th>
3399
3400
3401 <th style="width:12%; min-width:110px;">Argument</th>
3402
3403
3404
3405 <th style="width:12%; min-width:110px;">Default</th>
3406
3407
3408 <th class="last" style="min-width:310px;">Description</th>
3409 </tr>
3410 </thead>
3411
3412 <tbody>
3413
3414
3415 <tr>
3416
3417 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>classNames</code></td>
3418
3419
3420 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3421
3422
3423<span class="param-type">string</span>
3424
3425
3426
3427
3428 </td>
3429
3430
3431 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3432
3433
3434
3435
3436
3437 </td>
3438
3439
3440
3441 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3442
3443 </td>
3444
3445
3446 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The name of the class or classes (separated by a blank space) whose elements we want to delete. The order of the classes is just important for the internal cache.</p></td>
3447 </tr>
3448
3449
3450
3451 <tr>
3452
3453 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>baseElement</code></td>
3454
3455
3456 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3457
3458
3459<span class="param-type">Node</span>
3460
3461
3462
3463
3464 </td>
3465
3466
3467 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3468
3469 &lt;optional><br>
3470
3471
3472
3473
3474
3475 </td>
3476
3477
3478
3479 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3480
3481 document
3482
3483 </td>
3484
3485
3486 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The node element parent where we want to focus our search.</p></td>
3487 </tr>
3488
3489
3490
3491 <tr>
3492
3493 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>useCache</code></td>
3494
3495
3496 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3497
3498
3499<span class="param-type">boolean</span>
3500
3501
3502
3503
3504 </td>
3505
3506
3507 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3508
3509 &lt;optional><br>
3510
3511
3512
3513
3514
3515 </td>
3516
3517
3518
3519 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3520
3521 <a href="CB_Configuration.CrossBase.html#.CB_Elements_classes_USE_CACHE"><code>CB_Configuration.CrossBase.CB_Elements_classes_USE_CACHE</code></a>
3522
3523 </td>
3524
3525
3526 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Defines whether to try to get the result from an internal cache (it will exist if we previously called the function with the same parameters) or not. The internal cache will be updated when this parameter is set to false or it will be created automatically when it did not exist before.</p></td>
3527 </tr>
3528
3529
3530 </tbody>
3531</table>
3532
3533
3534
3535
3536<dl class="details">
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
3567 <dd class="tag-source">
3568 <ul class="dummy">
3569 <li>
3570 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
3571 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-496">line 496</a>
3572 </li>
3573 </ul>
3574 </dd>
3575
3576
3577
3578
3579
3580
3581
3582</dl>
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598</dd>
3599
3600
3601
3602<hr>
3603<dt>
3604 <h4 class="name" id=".contextMenuDisable"><span class="type-signature">&lt;static> </span>contextMenuDisable<span class="signature">( [element] [, disableContextMenu])</span><span class="type-signature"> &rarr; {Node}</span></h4>
3605
3606
3607</dt>
3608<dd>
3609
3610
3611 <div class="description">
3612 <p>Disables or enables the contextual menu for a given element or in the whole document.</p>
3613 </div>
3614
3615
3616
3617
3618
3619
3620
3621
3622 <h5>Parameters:</h5>
3623
3624
3625<table class="params table table-striped">
3626 <thead>
3627 <tr>
3628
3629 <th style="width:12%; min-width:110px;">Name</th>
3630
3631
3632 <th style="width:12%; min-width:110px;">Type</th>
3633
3634
3635 <th style="width:12%; min-width:110px;">Argument</th>
3636
3637
3638
3639 <th style="width:12%; min-width:110px;">Default</th>
3640
3641
3642 <th class="last" style="min-width:310px;">Description</th>
3643 </tr>
3644 </thead>
3645
3646 <tbody>
3647
3648
3649 <tr>
3650
3651 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>element</code></td>
3652
3653
3654 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3655
3656
3657<span class="param-type">Node</span>
3658
3659
3660
3661
3662 </td>
3663
3664
3665 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3666
3667 &lt;optional><br>
3668
3669
3670
3671
3672
3673 </td>
3674
3675
3676
3677 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3678
3679 document
3680
3681 </td>
3682
3683
3684 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The element whose contextual menu we want to disable or enable. If not given, it will affect the whole document.</p></td>
3685 </tr>
3686
3687
3688
3689 <tr>
3690
3691 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>disableContextMenu</code></td>
3692
3693
3694 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3695
3696
3697<span class="param-type">boolean</span>
3698
3699
3700
3701
3702 </td>
3703
3704
3705 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3706
3707 &lt;optional><br>
3708
3709
3710
3711
3712
3713 </td>
3714
3715
3716
3717 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3718
3719 true
3720
3721 </td>
3722
3723
3724 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If set to false, it will allow showing the contextual menu. Otherwise, it will prevent it to show.</p></td>
3725 </tr>
3726
3727
3728 </tbody>
3729</table>
3730
3731
3732
3733
3734<dl class="details">
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
3765 <dd class="tag-source">
3766 <ul class="dummy">
3767 <li>
3768 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
3769 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1839">line 1839</a>
3770 </li>
3771 </ul>
3772 </dd>
3773
3774
3775
3776
3777
3778
3779
3780</dl>
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794 <h5>Returns:</h5>
3795
3796
3797<div class="param-desc">
3798 <p>Returns the affected element.</p>
3799</div>
3800
3801
3802
3803<dl>
3804 <dt>
3805 Type
3806 </dt>
3807 <dd>
3808
3809<span class="param-type">Node</span>
3810
3811
3812
3813 </dd>
3814</dl>
3815
3816
3817
3818
3819
3820</dd>
3821
3822
3823
3824<hr>
3825<dt>
3826 <h4 class="name" id=".contextMenuDisableById"><span class="type-signature">&lt;static> </span>contextMenuDisableById<span class="signature">(elementId [, disableContextMenu])</span><span class="type-signature"> &rarr; {Node|null}</span></h4>
3827
3828
3829</dt>
3830<dd>
3831
3832
3833 <div class="description">
3834 <p>Disables or enables the contextual menu for a given element (by its identifier).</p>
3835 </div>
3836
3837
3838
3839
3840
3841
3842
3843
3844 <h5>Parameters:</h5>
3845
3846
3847<table class="params table table-striped">
3848 <thead>
3849 <tr>
3850
3851 <th style="width:12%; min-width:110px;">Name</th>
3852
3853
3854 <th style="width:12%; min-width:110px;">Type</th>
3855
3856
3857 <th style="width:12%; min-width:110px;">Argument</th>
3858
3859
3860
3861 <th style="width:12%; min-width:110px;">Default</th>
3862
3863
3864 <th class="last" style="min-width:310px;">Description</th>
3865 </tr>
3866 </thead>
3867
3868 <tbody>
3869
3870
3871 <tr>
3872
3873 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>elementId</code></td>
3874
3875
3876 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3877
3878
3879<span class="param-type">string</span>
3880
3881
3882
3883
3884 </td>
3885
3886
3887 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3888
3889
3890
3891
3892
3893 </td>
3894
3895
3896
3897 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3898
3899 </td>
3900
3901
3902 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element whose contextual menu we want to disable or enable.</p></td>
3903 </tr>
3904
3905
3906
3907 <tr>
3908
3909 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>disableContextMenu</code></td>
3910
3911
3912 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3913
3914
3915<span class="param-type">boolean</span>
3916
3917
3918
3919
3920 </td>
3921
3922
3923 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3924
3925 &lt;optional><br>
3926
3927
3928
3929
3930
3931 </td>
3932
3933
3934
3935 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3936
3937 true
3938
3939 </td>
3940
3941
3942 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If set to false, it will allow showing the contextual menu. Otherwise, it will prevent it to show.</p></td>
3943 </tr>
3944
3945
3946 </tbody>
3947</table>
3948
3949
3950
3951
3952<dl class="details">
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
3983 <dd class="tag-source">
3984 <ul class="dummy">
3985 <li>
3986 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
3987 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1862">line 1862</a>
3988 </li>
3989 </ul>
3990 </dd>
3991
3992
3993
3994
3995
3996
3997
3998</dl>
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012 <h5>Returns:</h5>
4013
4014
4015<div class="param-desc">
4016 <p>Returns the affected element (if any) or null otherwise.</p>
4017</div>
4018
4019
4020
4021<dl>
4022 <dt>
4023 Type
4024 </dt>
4025 <dd>
4026
4027<span class="param-type">Node</span>
4028|
4029
4030<span class="param-type">null</span>
4031
4032
4033
4034 </dd>
4035</dl>
4036
4037
4038
4039
4040
4041</dd>
4042
4043
4044
4045<hr>
4046<dt>
4047 <h4 class="name" id=".get"><span class="type-signature">&lt;static> </span>get<span class="signature">()</span><span class="type-signature"></span></h4>
4048
4049
4050</dt>
4051<dd>
4052
4053
4054 <div class="description">
4055 <p>Alias for <a href="CB_Elements.html#.id"><code>CB_Elements.id</code></a>.</p>
4056 </div>
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067<dl class="details">
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
4098 <dd class="tag-source">
4099 <ul class="dummy">
4100 <li>
4101 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
4102 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-526">line 526</a>
4103 </li>
4104 </ul>
4105 </dd>
4106
4107
4108
4109
4110
4111 <dt class="tag-see method-doc-label method-doc-details-label">See:</dt>
4112 <dd class="tag-see">
4113 <ul>
4114 <li><a href="CB_Elements.html#.id"><code>CB_Elements.id</code></a></li>
4115 </ul>
4116 </dd>
4117
4118
4119
4120</dl>
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136</dd>
4137
4138
4139
4140<hr>
4141<dt>
4142 <h4 class="name" id=".getById"><span class="type-signature">&lt;static> </span>getById<span class="signature">()</span><span class="type-signature"></span></h4>
4143
4144
4145</dt>
4146<dd>
4147
4148
4149 <div class="description">
4150 <p>Alias for <a href="CB_Elements.html#.id"><code>CB_Elements.id</code></a>.</p>
4151 </div>
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162<dl class="details">
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
4193 <dd class="tag-source">
4194 <ul class="dummy">
4195 <li>
4196 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
4197 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-531">line 531</a>
4198 </li>
4199 </ul>
4200 </dd>
4201
4202
4203
4204
4205
4206 <dt class="tag-see method-doc-label method-doc-details-label">See:</dt>
4207 <dd class="tag-see">
4208 <ul>
4209 <li><a href="CB_Elements.html#.id"><code>CB_Elements.id</code></a></li>
4210 </ul>
4211 </dd>
4212
4213
4214
4215</dl>
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231</dd>
4232
4233
4234
4235<hr>
4236<dt>
4237 <h4 class="name" id=".getFrameBodyContent"><span class="type-signature">&lt;static> </span>getFrameBodyContent<span class="signature">(frameElement)</span><span class="type-signature"> &rarr; {string|null}</span></h4>
4238
4239
4240</dt>
4241<dd>
4242
4243
4244 <div class="description">
4245 <p>Tries to get the body content of an <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe">iframe</a>. Depending on the client and the safety measures, this might fail.</p>
4246 </div>
4247
4248
4249
4250
4251
4252
4253
4254
4255 <h5>Parameters:</h5>
4256
4257
4258<table class="params table table-striped">
4259 <thead>
4260 <tr>
4261
4262 <th style="width:12%; min-width:110px;">Name</th>
4263
4264
4265 <th style="width:12%; min-width:110px;">Type</th>
4266
4267
4268
4269
4270
4271 <th class="last" style="min-width:310px;">Description</th>
4272 </tr>
4273 </thead>
4274
4275 <tbody>
4276
4277
4278 <tr>
4279
4280 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>frameElement</code></td>
4281
4282
4283 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
4284
4285
4286<span class="param-type">HTMLIFrameElement</span>
4287
4288
4289
4290
4291 </td>
4292
4293
4294
4295
4296
4297 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe">iframe</a> element whose body content we want to get.</p></td>
4298 </tr>
4299
4300
4301 </tbody>
4302</table>
4303
4304
4305
4306
4307<dl class="details">
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
4338 <dd class="tag-source">
4339 <ul class="dummy">
4340 <li>
4341 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
4342 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1880">line 1880</a>
4343 </li>
4344 </ul>
4345 </dd>
4346
4347
4348
4349
4350
4351
4352
4353</dl>
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367 <h5>Returns:</h5>
4368
4369
4370<div class="param-desc">
4371 <p>Returns null if something goes wrong.</p>
4372</div>
4373
4374
4375
4376<dl>
4377 <dt>
4378 Type
4379 </dt>
4380 <dd>
4381
4382<span class="param-type">string</span>
4383|
4384
4385<span class="param-type">null</span>
4386
4387
4388
4389 </dd>
4390</dl>
4391
4392
4393
4394
4395
4396</dd>
4397
4398
4399
4400<hr>
4401<dt>
4402 <h4 class="name" id=".getFrameBodyContentById"><span class="type-signature">&lt;static> </span>getFrameBodyContentById<span class="signature">(frameElementId)</span><span class="type-signature"> &rarr; {string|null}</span></h4>
4403
4404
4405</dt>
4406<dd>
4407
4408
4409 <div class="description">
4410 <p>Tries to get the body content of an <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe">iframe</a> (by its identifier). Depending on the client and the safety measures, this might fail.</p>
4411 </div>
4412
4413
4414
4415
4416
4417
4418
4419
4420 <h5>Parameters:</h5>
4421
4422
4423<table class="params table table-striped">
4424 <thead>
4425 <tr>
4426
4427 <th style="width:12%; min-width:110px;">Name</th>
4428
4429
4430 <th style="width:12%; min-width:110px;">Type</th>
4431
4432
4433
4434
4435
4436 <th class="last" style="min-width:310px;">Description</th>
4437 </tr>
4438 </thead>
4439
4440 <tbody>
4441
4442
4443 <tr>
4444
4445 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>frameElementId</code></td>
4446
4447
4448 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
4449
4450
4451<span class="param-type">string</span>
4452
4453
4454
4455
4456 </td>
4457
4458
4459
4460
4461
4462 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe">iframe</a> element whose body content we want to get.</p></td>
4463 </tr>
4464
4465
4466 </tbody>
4467</table>
4468
4469
4470
4471
4472<dl class="details">
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
4503 <dd class="tag-source">
4504 <ul class="dummy">
4505 <li>
4506 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
4507 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1924">line 1924</a>
4508 </li>
4509 </ul>
4510 </dd>
4511
4512
4513
4514
4515
4516
4517
4518</dl>
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532 <h5>Returns:</h5>
4533
4534
4535<div class="param-desc">
4536 <p>Returns null if something goes wrong.</p>
4537</div>
4538
4539
4540
4541<dl>
4542 <dt>
4543 Type
4544 </dt>
4545 <dd>
4546
4547<span class="param-type">string</span>
4548|
4549
4550<span class="param-type">null</span>
4551
4552
4553
4554 </dd>
4555</dl>
4556
4557
4558
4559
4560
4561</dd>
4562
4563
4564
4565<hr>
4566<dt>
4567 <h4 class="name" id=".getHeight"><span class="type-signature">&lt;static> </span>getHeight<span class="signature">(element [, returnNullOnFail] [, computed])</span><span class="type-signature"> &rarr; {*}</span></h4>
4568
4569
4570</dt>
4571<dd>
4572
4573
4574 <div class="description">
4575 <p>Returns the height of an element (having in mind its border).</p>
4576 </div>
4577
4578
4579
4580
4581
4582
4583
4584
4585 <h5>Parameters:</h5>
4586
4587
4588<table class="params table table-striped">
4589 <thead>
4590 <tr>
4591
4592 <th style="width:12%; min-width:110px;">Name</th>
4593
4594
4595 <th style="width:12%; min-width:110px;">Type</th>
4596
4597
4598 <th style="width:12%; min-width:110px;">Argument</th>
4599
4600
4601
4602 <th style="width:12%; min-width:110px;">Default</th>
4603
4604
4605 <th class="last" style="min-width:310px;">Description</th>
4606 </tr>
4607 </thead>
4608
4609 <tbody>
4610
4611
4612 <tr>
4613
4614 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>element</code></td>
4615
4616
4617 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
4618
4619
4620<span class="param-type">Node</span>
4621
4622
4623
4624
4625 </td>
4626
4627
4628 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
4629
4630
4631
4632
4633
4634 </td>
4635
4636
4637
4638 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
4639
4640 </td>
4641
4642
4643 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The element whose data we are interested in.</p></td>
4644 </tr>
4645
4646
4647
4648 <tr>
4649
4650 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>returnNullOnFail</code></td>
4651
4652
4653 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
4654
4655
4656<span class="param-type">function</span>
4657
4658
4659
4660
4661 </td>
4662
4663
4664 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
4665
4666 &lt;optional><br>
4667
4668
4669
4670
4671
4672 </td>
4673
4674
4675
4676 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
4677
4678 false
4679
4680 </td>
4681
4682
4683 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will return null instead of zero (0) in the case that something goes wrong.</p></td>
4684 </tr>
4685
4686
4687
4688 <tr>
4689
4690 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
4691
4692
4693 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
4694
4695
4696<span class="param-type">boolean</span>
4697
4698
4699
4700
4701 </td>
4702
4703
4704 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
4705
4706 &lt;optional><br>
4707
4708
4709
4710
4711
4712 </td>
4713
4714
4715
4716 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
4717
4718 false
4719
4720 </td>
4721
4722
4723 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>This parameter will be used when it calls <a href="CB_Elements.html#.getStylePropertyInteger"><code>CB_Elements.getStylePropertyInteger</code></a> internally.</p></td>
4724 </tr>
4725
4726
4727 </tbody>
4728</table>
4729
4730
4731
4732
4733<dl class="details">
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
4764 <dd class="tag-source">
4765 <ul class="dummy">
4766 <li>
4767 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
4768 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1716">line 1716</a>
4769 </li>
4770 </ul>
4771 </dd>
4772
4773
4774
4775
4776
4777
4778
4779</dl>
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793 <h5>Returns:</h5>
4794
4795
4796<div class="param-desc">
4797 <p>It could return zero (0) or even a non-numeric value if something fails (use &quot;returnNullOnFail&quot; set to true to return null when it fails).</p>
4798</div>
4799
4800
4801
4802<dl>
4803 <dt>
4804 Type
4805 </dt>
4806 <dd>
4807
4808<span class="param-type">*</span>
4809
4810
4811
4812 </dd>
4813</dl>
4814
4815
4816
4817
4818
4819</dd>
4820
4821
4822
4823<hr>
4824<dt>
4825 <h4 class="name" id=".getHeightById"><span class="type-signature">&lt;static> </span>getHeightById<span class="signature">(elementId [, returnNullOnFail] [, computed])</span><span class="type-signature"> &rarr; {*}</span></h4>
4826
4827
4828</dt>
4829<dd>
4830
4831
4832 <div class="description">
4833 <p>Returns the height of an element (having in mind its border), by its identifier.</p>
4834 </div>
4835
4836
4837
4838
4839
4840
4841
4842
4843 <h5>Parameters:</h5>
4844
4845
4846<table class="params table table-striped">
4847 <thead>
4848 <tr>
4849
4850 <th style="width:12%; min-width:110px;">Name</th>
4851
4852
4853 <th style="width:12%; min-width:110px;">Type</th>
4854
4855
4856 <th style="width:12%; min-width:110px;">Argument</th>
4857
4858
4859
4860 <th style="width:12%; min-width:110px;">Default</th>
4861
4862
4863 <th class="last" style="min-width:310px;">Description</th>
4864 </tr>
4865 </thead>
4866
4867 <tbody>
4868
4869
4870 <tr>
4871
4872 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>elementId</code></td>
4873
4874
4875 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
4876
4877
4878<span class="param-type">string</span>
4879
4880
4881
4882
4883 </td>
4884
4885
4886 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
4887
4888
4889
4890
4891
4892 </td>
4893
4894
4895
4896 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
4897
4898 </td>
4899
4900
4901 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element whose data we are interested in.</p></td>
4902 </tr>
4903
4904
4905
4906 <tr>
4907
4908 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>returnNullOnFail</code></td>
4909
4910
4911 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
4912
4913
4914<span class="param-type">function</span>
4915
4916
4917
4918
4919 </td>
4920
4921
4922 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
4923
4924 &lt;optional><br>
4925
4926
4927
4928
4929
4930 </td>
4931
4932
4933
4934 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
4935
4936 false
4937
4938 </td>
4939
4940
4941 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will return null instead of zero (0) in the case that something goes wrong.</p></td>
4942 </tr>
4943
4944
4945
4946 <tr>
4947
4948 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
4949
4950
4951 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
4952
4953
4954<span class="param-type">boolean</span>
4955
4956
4957
4958
4959 </td>
4960
4961
4962 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
4963
4964 &lt;optional><br>
4965
4966
4967
4968
4969
4970 </td>
4971
4972
4973
4974 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
4975
4976 false
4977
4978 </td>
4979
4980
4981 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>This parameter will be used when it calls <a href="CB_Elements.html#.getStylePropertyInteger"><code>CB_Elements.getStylePropertyInteger</code></a> internally.</p></td>
4982 </tr>
4983
4984
4985 </tbody>
4986</table>
4987
4988
4989
4990
4991<dl class="details">
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
5022 <dd class="tag-source">
5023 <ul class="dummy">
5024 <li>
5025 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
5026 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1766">line 1766</a>
5027 </li>
5028 </ul>
5029 </dd>
5030
5031
5032
5033
5034
5035
5036
5037</dl>
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051 <h5>Returns:</h5>
5052
5053
5054<div class="param-desc">
5055 <p>It could return zero (0) or even a non-numeric value if something fails (use &quot;returnNullOnFail&quot; set to true to return null when it fails).</p>
5056</div>
5057
5058
5059
5060<dl>
5061 <dt>
5062 Type
5063 </dt>
5064 <dd>
5065
5066<span class="param-type">*</span>
5067
5068
5069
5070 </dd>
5071</dl>
5072
5073
5074
5075
5076
5077</dd>
5078
5079
5080
5081<hr>
5082<dt>
5083 <h4 class="name" id=".getLeft"><span class="type-signature">&lt;static> </span>getLeft<span class="signature">(element [, ignoreScroll] [, returnNullOnFail] [, computed])</span><span class="type-signature"> &rarr; {*}</span></h4>
5084
5085
5086</dt>
5087<dd>
5088
5089
5090 <div class="description">
5091 <p>Returns the left position of an element (having in mind <a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect">getBoundingClientRect</a> if available, its parents, etc.).</p>
5092 </div>
5093
5094
5095
5096
5097
5098
5099
5100
5101 <h5>Parameters:</h5>
5102
5103
5104<table class="params table table-striped">
5105 <thead>
5106 <tr>
5107
5108 <th style="width:12%; min-width:110px;">Name</th>
5109
5110
5111 <th style="width:12%; min-width:110px;">Type</th>
5112
5113
5114 <th style="width:12%; min-width:110px;">Argument</th>
5115
5116
5117
5118 <th style="width:12%; min-width:110px;">Default</th>
5119
5120
5121 <th class="last" style="min-width:310px;">Description</th>
5122 </tr>
5123 </thead>
5124
5125 <tbody>
5126
5127
5128 <tr>
5129
5130 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>element</code></td>
5131
5132
5133 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
5134
5135
5136<span class="param-type">Node</span>
5137
5138
5139
5140
5141 </td>
5142
5143
5144 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
5145
5146
5147
5148
5149
5150 </td>
5151
5152
5153
5154 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
5155
5156 </td>
5157
5158
5159 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The element whose data we are interested in.</p></td>
5160 </tr>
5161
5162
5163
5164 <tr>
5165
5166 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>ignoreScroll</code></td>
5167
5168
5169 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
5170
5171
5172<span class="param-type">boolean</span>
5173
5174
5175
5176
5177 </td>
5178
5179
5180 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
5181
5182 &lt;optional><br>
5183
5184
5185
5186
5187
5188 </td>
5189
5190
5191
5192 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
5193
5194 true
5195
5196 </td>
5197
5198
5199 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to false, it will have in mind the current scroll position to calculate the result.</p></td>
5200 </tr>
5201
5202
5203
5204 <tr>
5205
5206 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>returnNullOnFail</code></td>
5207
5208
5209 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
5210
5211
5212<span class="param-type">function</span>
5213
5214
5215
5216
5217 </td>
5218
5219
5220 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
5221
5222 &lt;optional><br>
5223
5224
5225
5226
5227
5228 </td>
5229
5230
5231
5232 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
5233
5234 false
5235
5236 </td>
5237
5238
5239 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will return null instead of zero (0) in the case that something goes wrong.</p></td>
5240 </tr>
5241
5242
5243
5244 <tr>
5245
5246 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
5247
5248
5249 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
5250
5251
5252<span class="param-type">boolean</span>
5253
5254
5255
5256
5257 </td>
5258
5259
5260 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
5261
5262 &lt;optional><br>
5263
5264
5265
5266
5267
5268 </td>
5269
5270
5271
5272 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
5273
5274 false
5275
5276 </td>
5277
5278
5279 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>This parameter will be used when it calls <a href="CB_Elements.html#.getStyleProperty"><code>CB_Elements.getStyleProperty</code></a> and <a href="CB_Elements.html#.getStylePropertyInteger"><code>CB_Elements.getStylePropertyInteger</code></a> internally.</p></td>
5280 </tr>
5281
5282
5283 </tbody>
5284</table>
5285
5286
5287
5288
5289<dl class="details">
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
5320 <dd class="tag-source">
5321 <ul class="dummy">
5322 <li>
5323 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
5324 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1402">line 1402</a>
5325 </li>
5326 </ul>
5327 </dd>
5328
5329
5330
5331
5332
5333
5334
5335</dl>
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349 <h5>Returns:</h5>
5350
5351
5352<div class="param-desc">
5353 <p>It could return zero (0) or even a non-numeric value if something fails (use &quot;returnNullOnFail&quot; set to true to return null when it fails).</p>
5354</div>
5355
5356
5357
5358<dl>
5359 <dt>
5360 Type
5361 </dt>
5362 <dd>
5363
5364<span class="param-type">*</span>
5365
5366
5367
5368 </dd>
5369</dl>
5370
5371
5372
5373
5374
5375</dd>
5376
5377
5378
5379<hr>
5380<dt>
5381 <h4 class="name" id=".getLeftById"><span class="type-signature">&lt;static> </span>getLeftById<span class="signature">(elementId [, ignoreScroll] [, returnNullOnFail] [, computed])</span><span class="type-signature"> &rarr; {*}</span></h4>
5382
5383
5384</dt>
5385<dd>
5386
5387
5388 <div class="description">
5389 <p>Returns the left position of an element (having in mind <a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect">getBoundingClientRect</a> if available, its parents, etc.), by its identifier.</p>
5390 </div>
5391
5392
5393
5394
5395
5396
5397
5398
5399 <h5>Parameters:</h5>
5400
5401
5402<table class="params table table-striped">
5403 <thead>
5404 <tr>
5405
5406 <th style="width:12%; min-width:110px;">Name</th>
5407
5408
5409 <th style="width:12%; min-width:110px;">Type</th>
5410
5411
5412 <th style="width:12%; min-width:110px;">Argument</th>
5413
5414
5415
5416 <th style="width:12%; min-width:110px;">Default</th>
5417
5418
5419 <th class="last" style="min-width:310px;">Description</th>
5420 </tr>
5421 </thead>
5422
5423 <tbody>
5424
5425
5426 <tr>
5427
5428 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>elementId</code></td>
5429
5430
5431 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
5432
5433
5434<span class="param-type">string</span>
5435
5436
5437
5438
5439 </td>
5440
5441
5442 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
5443
5444
5445
5446
5447
5448 </td>
5449
5450
5451
5452 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
5453
5454 </td>
5455
5456
5457 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element whose data we are interested in.</p></td>
5458 </tr>
5459
5460
5461
5462 <tr>
5463
5464 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>ignoreScroll</code></td>
5465
5466
5467 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
5468
5469
5470<span class="param-type">boolean</span>
5471
5472
5473
5474
5475 </td>
5476
5477
5478 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
5479
5480 &lt;optional><br>
5481
5482
5483
5484
5485
5486 </td>
5487
5488
5489
5490 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
5491
5492 true
5493
5494 </td>
5495
5496
5497 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to false, it will have in mind the current scroll position to calculate the result.</p></td>
5498 </tr>
5499
5500
5501
5502 <tr>
5503
5504 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>returnNullOnFail</code></td>
5505
5506
5507 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
5508
5509
5510<span class="param-type">function</span>
5511
5512
5513
5514
5515 </td>
5516
5517
5518 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
5519
5520 &lt;optional><br>
5521
5522
5523
5524
5525
5526 </td>
5527
5528
5529
5530 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
5531
5532 false
5533
5534 </td>
5535
5536
5537 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will return null instead of zero (0) in the case that something goes wrong.</p></td>
5538 </tr>
5539
5540
5541
5542 <tr>
5543
5544 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
5545
5546
5547 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
5548
5549
5550<span class="param-type">boolean</span>
5551
5552
5553
5554
5555 </td>
5556
5557
5558 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
5559
5560 &lt;optional><br>
5561
5562
5563
5564
5565
5566 </td>
5567
5568
5569
5570 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
5571
5572 false
5573
5574 </td>
5575
5576
5577 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>This parameter will be used when it calls <a href="CB_Elements.html#.getStyleProperty"><code>CB_Elements.getStyleProperty</code></a> and <a href="CB_Elements.html#.getStylePropertyInteger"><code>CB_Elements.getStylePropertyInteger</code></a> internally.</p></td>
5578 </tr>
5579
5580
5581 </tbody>
5582</table>
5583
5584
5585
5586
5587<dl class="details">
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
5618 <dd class="tag-source">
5619 <ul class="dummy">
5620 <li>
5621 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
5622 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1511">line 1511</a>
5623 </li>
5624 </ul>
5625 </dd>
5626
5627
5628
5629
5630
5631
5632
5633</dl>
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647 <h5>Returns:</h5>
5648
5649
5650<div class="param-desc">
5651 <p>It could return zero (0) or even a non-numeric value if something fails (use &quot;returnNullOnFail&quot; set to true to return null when it fails).</p>
5652</div>
5653
5654
5655
5656<dl>
5657 <dt>
5658 Type
5659 </dt>
5660 <dd>
5661
5662<span class="param-type">*</span>
5663
5664
5665
5666 </dd>
5667</dl>
5668
5669
5670
5671
5672
5673</dd>
5674
5675
5676
5677<hr>
5678<dt>
5679 <h4 class="name" id=".getParent"><span class="type-signature">&lt;static> </span>getParent<span class="signature">(element)</span><span class="type-signature"> &rarr; {Node|null}</span></h4>
5680
5681
5682</dt>
5683<dd>
5684
5685
5686 <div class="description">
5687 <p>Returns the first parent of a given element:</p>
5688 </div>
5689
5690
5691
5692
5693
5694
5695
5696
5697 <h5>Parameters:</h5>
5698
5699
5700<table class="params table table-striped">
5701 <thead>
5702 <tr>
5703
5704 <th style="width:12%; min-width:110px;">Name</th>
5705
5706
5707 <th style="width:12%; min-width:110px;">Type</th>
5708
5709
5710
5711
5712
5713 <th class="last" style="min-width:310px;">Description</th>
5714 </tr>
5715 </thead>
5716
5717 <tbody>
5718
5719
5720 <tr>
5721
5722 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>element</code></td>
5723
5724
5725 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
5726
5727
5728<span class="param-type">Node</span>
5729
5730
5731
5732
5733 </td>
5734
5735
5736
5737
5738
5739 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The element whose parent we want to get.</p></td>
5740 </tr>
5741
5742
5743 </tbody>
5744</table>
5745
5746
5747
5748
5749<dl class="details">
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
5780 <dd class="tag-source">
5781 <ul class="dummy">
5782 <li>
5783 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
5784 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-721">line 721</a>
5785 </li>
5786 </ul>
5787 </dd>
5788
5789
5790
5791
5792
5793
5794
5795</dl>
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809 <h5>Returns:</h5>
5810
5811
5812<div class="param-desc">
5813 <p>Returns null if the parent cannot be found.</p>
5814</div>
5815
5816
5817
5818<dl>
5819 <dt>
5820 Type
5821 </dt>
5822 <dd>
5823
5824<span class="param-type">Node</span>
5825|
5826
5827<span class="param-type">null</span>
5828
5829
5830
5831 </dd>
5832</dl>
5833
5834
5835
5836
5837
5838</dd>
5839
5840
5841
5842<hr>
5843<dt>
5844 <h4 class="name" id=".getParentById"><span class="type-signature">&lt;static> </span>getParentById<span class="signature">(elementId)</span><span class="type-signature"> &rarr; {Node|null}</span></h4>
5845
5846
5847</dt>
5848<dd>
5849
5850
5851 <div class="description">
5852 <p>Returns the first parent of a given element (by its identifier):</p>
5853 </div>
5854
5855
5856
5857
5858
5859
5860
5861
5862 <h5>Parameters:</h5>
5863
5864
5865<table class="params table table-striped">
5866 <thead>
5867 <tr>
5868
5869 <th style="width:12%; min-width:110px;">Name</th>
5870
5871
5872 <th style="width:12%; min-width:110px;">Type</th>
5873
5874
5875
5876
5877
5878 <th class="last" style="min-width:310px;">Description</th>
5879 </tr>
5880 </thead>
5881
5882 <tbody>
5883
5884
5885 <tr>
5886
5887 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>elementId</code></td>
5888
5889
5890 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
5891
5892
5893<span class="param-type">string</span>
5894
5895
5896
5897
5898 </td>
5899
5900
5901
5902
5903
5904 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element whose parent we want to get.</p></td>
5905 </tr>
5906
5907
5908 </tbody>
5909</table>
5910
5911
5912
5913
5914<dl class="details">
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
5945 <dd class="tag-source">
5946 <ul class="dummy">
5947 <li>
5948 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
5949 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-743">line 743</a>
5950 </li>
5951 </ul>
5952 </dd>
5953
5954
5955
5956
5957
5958
5959
5960</dl>
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974 <h5>Returns:</h5>
5975
5976
5977<div class="param-desc">
5978 <p>Returns null if the parent cannot be found.</p>
5979</div>
5980
5981
5982
5983<dl>
5984 <dt>
5985 Type
5986 </dt>
5987 <dd>
5988
5989<span class="param-type">Node</span>
5990|
5991
5992<span class="param-type">null</span>
5993
5994
5995
5996 </dd>
5997</dl>
5998
5999
6000
6001
6002
6003</dd>
6004
6005
6006
6007<hr>
6008<dt>
6009 <h4 class="name" id=".getParents"><span class="type-signature">&lt;static> </span>getParents<span class="signature">(element)</span><span class="type-signature"> &rarr; {array}</span></h4>
6010
6011
6012</dt>
6013<dd>
6014
6015
6016 <div class="description">
6017 <p>Returns an array with the parents of a given element, with the topmost parent in the highest index:</p>
6018 </div>
6019
6020
6021
6022
6023
6024
6025
6026
6027 <h5>Parameters:</h5>
6028
6029
6030<table class="params table table-striped">
6031 <thead>
6032 <tr>
6033
6034 <th style="width:12%; min-width:110px;">Name</th>
6035
6036
6037 <th style="width:12%; min-width:110px;">Type</th>
6038
6039
6040
6041
6042
6043 <th class="last" style="min-width:310px;">Description</th>
6044 </tr>
6045 </thead>
6046
6047 <tbody>
6048
6049
6050 <tr>
6051
6052 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>element</code></td>
6053
6054
6055 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6056
6057
6058<span class="param-type">Node</span>
6059
6060
6061
6062
6063 </td>
6064
6065
6066
6067
6068
6069 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The element whose parents we want to get.</p></td>
6070 </tr>
6071
6072
6073 </tbody>
6074</table>
6075
6076
6077
6078
6079<dl class="details">
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
6110 <dd class="tag-source">
6111 <ul class="dummy">
6112 <li>
6113 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
6114 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-689">line 689</a>
6115 </li>
6116 </ul>
6117 </dd>
6118
6119
6120
6121
6122
6123
6124
6125</dl>
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139 <h5>Returns:</h5>
6140
6141
6142
6143
6144<dl>
6145 <dt>
6146 Type
6147 </dt>
6148 <dd>
6149
6150<span class="param-type">array</span>
6151
6152
6153
6154 </dd>
6155</dl>
6156
6157
6158
6159
6160
6161</dd>
6162
6163
6164
6165<hr>
6166<dt>
6167 <h4 class="name" id=".getParentsById"><span class="type-signature">&lt;static> </span>getParentsById<span class="signature">(elementId)</span><span class="type-signature"> &rarr; {array}</span></h4>
6168
6169
6170</dt>
6171<dd>
6172
6173
6174 <div class="description">
6175 <p>Returns an array with the parents of a given element (by its identifier), with the topmost parent in the highest index:</p>
6176 </div>
6177
6178
6179
6180
6181
6182
6183
6184
6185 <h5>Parameters:</h5>
6186
6187
6188<table class="params table table-striped">
6189 <thead>
6190 <tr>
6191
6192 <th style="width:12%; min-width:110px;">Name</th>
6193
6194
6195 <th style="width:12%; min-width:110px;">Type</th>
6196
6197
6198
6199
6200
6201 <th class="last" style="min-width:310px;">Description</th>
6202 </tr>
6203 </thead>
6204
6205 <tbody>
6206
6207
6208 <tr>
6209
6210 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>elementId</code></td>
6211
6212
6213 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6214
6215
6216<span class="param-type">string</span>
6217
6218
6219
6220
6221 </td>
6222
6223
6224
6225
6226
6227 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element whose parents we want to get.</p></td>
6228 </tr>
6229
6230
6231 </tbody>
6232</table>
6233
6234
6235
6236
6237<dl class="details">
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
6268 <dd class="tag-source">
6269 <ul class="dummy">
6270 <li>
6271 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
6272 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-709">line 709</a>
6273 </li>
6274 </ul>
6275 </dd>
6276
6277
6278
6279
6280
6281
6282
6283</dl>
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297 <h5>Returns:</h5>
6298
6299
6300
6301
6302<dl>
6303 <dt>
6304 Type
6305 </dt>
6306 <dd>
6307
6308<span class="param-type">array</span>
6309
6310
6311
6312 </dd>
6313</dl>
6314
6315
6316
6317
6318
6319</dd>
6320
6321
6322
6323<hr>
6324<dt>
6325 <h4 class="name" id=".getScrollLeftById"><span class="type-signature">&lt;static> </span>getScrollLeftById<span class="signature">( [elementId] [, onScrollLeftChanges] [, fireFirstTime] [, fireAlways] [, timeoutMs] [, returnNullOnFail])</span><span class="type-signature"> &rarr; {number|null}</span></h4>
6326
6327
6328</dt>
6329<dd>
6330
6331
6332 <div class="description">
6333 <p>Returns the horizontal scroll of a given element (by its identifier) and allows running a callback function (becoming recursive if desired). Any previous interval started by a previous call to this function, for the same &quot;elementId&quot;, will be stopped.</p>
6334 </div>
6335
6336
6337
6338
6339
6340
6341
6342
6343 <h5>Parameters:</h5>
6344
6345
6346<table class="params table table-striped">
6347 <thead>
6348 <tr>
6349
6350 <th style="width:12%; min-width:110px;">Name</th>
6351
6352
6353 <th style="width:12%; min-width:110px;">Type</th>
6354
6355
6356 <th style="width:12%; min-width:110px;">Argument</th>
6357
6358
6359
6360 <th style="width:12%; min-width:110px;">Default</th>
6361
6362
6363 <th class="last" style="min-width:310px;">Description</th>
6364 </tr>
6365 </thead>
6366
6367 <tbody>
6368
6369
6370 <tr>
6371
6372 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>elementId</code></td>
6373
6374
6375 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6376
6377
6378<span class="param-type">string</span>
6379|
6380
6381<span class="param-type">window</span>
6382
6383
6384
6385
6386 </td>
6387
6388
6389 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6390
6391 &lt;optional><br>
6392
6393
6394
6395
6396
6397 </td>
6398
6399
6400
6401 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6402
6403 window
6404
6405 </td>
6406
6407
6408 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element whose horizontal scroll position we want to get. If a string with the identifier is not given, the unique value allowed is the window object (which is the default value when a non-valid value or no value is given).</p></td>
6409 </tr>
6410
6411
6412
6413 <tr>
6414
6415 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onScrollLeftChanges</code></td>
6416
6417
6418 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6419
6420
6421<span class="param-type"><a href="CB_Elements.html#.getScrollLeftById_getScrollTopById_ON_SCROLL_CHANGES">CB_Elements.getScrollLeftById_getScrollTopById_ON_SCROLL_CHANGES</a></span>
6422
6423
6424
6425
6426 </td>
6427
6428
6429 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6430
6431 &lt;optional><br>
6432
6433
6434
6435
6436
6437 </td>
6438
6439
6440
6441 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6442
6443 </td>
6444
6445
6446 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The desired callback function. It will be called as an interval if &quot;timeoutMs&quot; is a valid integer value.</p></td>
6447 </tr>
6448
6449
6450
6451 <tr>
6452
6453 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>fireFirstTime</code></td>
6454
6455
6456 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6457
6458
6459<span class="param-type">boolean</span>
6460
6461
6462
6463
6464 </td>
6465
6466
6467 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6468
6469 &lt;optional><br>
6470
6471
6472
6473
6474
6475 </td>
6476
6477
6478
6479 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6480
6481 false
6482
6483 </td>
6484
6485
6486 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will call the callback function (if any) as soon as this function is called.</p></td>
6487 </tr>
6488
6489
6490
6491 <tr>
6492
6493 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>fireAlways</code></td>
6494
6495
6496 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6497
6498
6499<span class="param-type">boolean</span>
6500
6501
6502
6503
6504 </td>
6505
6506
6507 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6508
6509 &lt;optional><br>
6510
6511
6512
6513
6514
6515 </td>
6516
6517
6518
6519 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6520
6521 false
6522
6523 </td>
6524
6525
6526 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will call the callback function (if any) every interval even if the horizontal scroll value has not changed from the last call.</p></td>
6527 </tr>
6528
6529
6530
6531 <tr>
6532
6533 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>timeoutMs</code></td>
6534
6535
6536 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6537
6538
6539<span class="param-type">integer</span>
6540
6541
6542
6543
6544 </td>
6545
6546
6547 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6548
6549 &lt;optional><br>
6550
6551
6552
6553
6554
6555 </td>
6556
6557
6558
6559 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6560
6561 </td>
6562
6563
6564 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The number of milliseconds between one call to the callback function (if any) and the next one. If not given, it will not perform any interval.</p></td>
6565 </tr>
6566
6567
6568
6569 <tr>
6570
6571 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>returnNullOnFail</code></td>
6572
6573
6574 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6575
6576
6577<span class="param-type">function</span>
6578
6579
6580
6581
6582 </td>
6583
6584
6585 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6586
6587 &lt;optional><br>
6588
6589
6590
6591
6592
6593 </td>
6594
6595
6596
6597 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6598
6599 false
6600
6601 </td>
6602
6603
6604 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will return null instead of zero (0) in the case that something goes wrong.</p></td>
6605 </tr>
6606
6607
6608 </tbody>
6609</table>
6610
6611
6612
6613
6614<dl class="details">
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
6645 <dd class="tag-source">
6646 <ul class="dummy">
6647 <li>
6648 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
6649 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1956">line 1956</a>
6650 </li>
6651 </ul>
6652 </dd>
6653
6654
6655
6656
6657
6658
6659
6660</dl>
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674 <h5>Returns:</h5>
6675
6676
6677<div class="param-desc">
6678 <p>Returns the horizontal scroll of the given element (by its identifier). It could return zero (0) if something fails (use &quot;returnNullOnFail&quot; set to true to return null when it fails).</p>
6679</div>
6680
6681
6682
6683<dl>
6684 <dt>
6685 Type
6686 </dt>
6687 <dd>
6688
6689<span class="param-type">number</span>
6690|
6691
6692<span class="param-type">null</span>
6693
6694
6695
6696 </dd>
6697</dl>
6698
6699
6700
6701
6702
6703</dd>
6704
6705
6706
6707<hr>
6708<dt>
6709 <h4 class="name" id=".getScrollTopById"><span class="type-signature">&lt;static> </span>getScrollTopById<span class="signature">( [elementId] [, onScrollTopChanges] [, fireFirstTime] [, fireAlways] [, timeoutMs] [, returnNullOnFail])</span><span class="type-signature"> &rarr; {number|null}</span></h4>
6710
6711
6712</dt>
6713<dd>
6714
6715
6716 <div class="description">
6717 <p>Returns the vertical scroll of a given element (by its identifier) and allows running a callback function (becoming recursive if desired). Any previous interval started by a previous call to this function, for the same &quot;elementId&quot;, will be stopped.</p>
6718 </div>
6719
6720
6721
6722
6723
6724
6725
6726
6727 <h5>Parameters:</h5>
6728
6729
6730<table class="params table table-striped">
6731 <thead>
6732 <tr>
6733
6734 <th style="width:12%; min-width:110px;">Name</th>
6735
6736
6737 <th style="width:12%; min-width:110px;">Type</th>
6738
6739
6740 <th style="width:12%; min-width:110px;">Argument</th>
6741
6742
6743
6744 <th style="width:12%; min-width:110px;">Default</th>
6745
6746
6747 <th class="last" style="min-width:310px;">Description</th>
6748 </tr>
6749 </thead>
6750
6751 <tbody>
6752
6753
6754 <tr>
6755
6756 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>elementId</code></td>
6757
6758
6759 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6760
6761
6762<span class="param-type">string</span>
6763|
6764
6765<span class="param-type">window</span>
6766
6767
6768
6769
6770 </td>
6771
6772
6773 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6774
6775 &lt;optional><br>
6776
6777
6778
6779
6780
6781 </td>
6782
6783
6784
6785 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6786
6787 window
6788
6789 </td>
6790
6791
6792 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element whose vertical scroll position we want to get. If a string with the identifier is not given, the unique value allowed is the window object (which is the default value when a non-valid value or no value is given).</p></td>
6793 </tr>
6794
6795
6796
6797 <tr>
6798
6799 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onScrollTopChanges</code></td>
6800
6801
6802 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6803
6804
6805<span class="param-type"><a href="CB_Elements.html#.getScrollLeftById_getScrollTopById_ON_SCROLL_CHANGES">CB_Elements.getScrollLeftById_getScrollTopById_ON_SCROLL_CHANGES</a></span>
6806
6807
6808
6809
6810 </td>
6811
6812
6813 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6814
6815 &lt;optional><br>
6816
6817
6818
6819
6820
6821 </td>
6822
6823
6824
6825 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6826
6827 </td>
6828
6829
6830 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The desired callback function. It will be called as an interval if &quot;timeoutMs&quot; is a valid integer value.</p></td>
6831 </tr>
6832
6833
6834
6835 <tr>
6836
6837 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>fireFirstTime</code></td>
6838
6839
6840 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6841
6842
6843<span class="param-type">boolean</span>
6844
6845
6846
6847
6848 </td>
6849
6850
6851 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6852
6853 &lt;optional><br>
6854
6855
6856
6857
6858
6859 </td>
6860
6861
6862
6863 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6864
6865 false
6866
6867 </td>
6868
6869
6870 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will call the callback function (if any) as soon as this function is called.</p></td>
6871 </tr>
6872
6873
6874
6875 <tr>
6876
6877 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>fireAlways</code></td>
6878
6879
6880 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6881
6882
6883<span class="param-type">boolean</span>
6884
6885
6886
6887
6888 </td>
6889
6890
6891 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6892
6893 &lt;optional><br>
6894
6895
6896
6897
6898
6899 </td>
6900
6901
6902
6903 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6904
6905 false
6906
6907 </td>
6908
6909
6910 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will call the callback function (if any) every interval even if the vertical scroll value has not changed from the last call.</p></td>
6911 </tr>
6912
6913
6914
6915 <tr>
6916
6917 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>timeoutMs</code></td>
6918
6919
6920 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6921
6922
6923<span class="param-type">integer</span>
6924
6925
6926
6927
6928 </td>
6929
6930
6931 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6932
6933 &lt;optional><br>
6934
6935
6936
6937
6938
6939 </td>
6940
6941
6942
6943 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6944
6945 </td>
6946
6947
6948 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The number of milliseconds between one call to the callback function (if any) and the next one. If not given, it will not perform any interval.</p></td>
6949 </tr>
6950
6951
6952
6953 <tr>
6954
6955 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>returnNullOnFail</code></td>
6956
6957
6958 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6959
6960
6961<span class="param-type">function</span>
6962
6963
6964
6965
6966 </td>
6967
6968
6969 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6970
6971 &lt;optional><br>
6972
6973
6974
6975
6976
6977 </td>
6978
6979
6980
6981 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
6982
6983 false
6984
6985 </td>
6986
6987
6988 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will return null instead of zero (0) in the case that something goes wrong.</p></td>
6989 </tr>
6990
6991
6992 </tbody>
6993</table>
6994
6995
6996
6997
6998<dl class="details">
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
7029 <dd class="tag-source">
7030 <ul class="dummy">
7031 <li>
7032 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
7033 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-2067">line 2067</a>
7034 </li>
7035 </ul>
7036 </dd>
7037
7038
7039
7040
7041
7042
7043
7044</dl>
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058 <h5>Returns:</h5>
7059
7060
7061<div class="param-desc">
7062 <p>Returns the vertical scroll of the given element (by its identifier). It could return zero (0) if something fails (use &quot;returnNullOnFail&quot; set to true to return null when it fails).</p>
7063</div>
7064
7065
7066
7067<dl>
7068 <dt>
7069 Type
7070 </dt>
7071 <dd>
7072
7073<span class="param-type">number</span>
7074|
7075
7076<span class="param-type">null</span>
7077
7078
7079
7080 </dd>
7081</dl>
7082
7083
7084
7085
7086
7087</dd>
7088
7089
7090
7091<hr>
7092<dt>
7093 <h4 class="name" id=".getStyle"><span class="type-signature">&lt;static> </span>getStyle<span class="signature">(element [, computed])</span><span class="type-signature"> &rarr; {Object|null}</span></h4>
7094
7095
7096</dt>
7097<dd>
7098
7099
7100 <div class="description">
7101 <p>Returns the style of an element, computed or static:</p>
7102 </div>
7103
7104
7105
7106
7107
7108
7109
7110
7111 <h5>Parameters:</h5>
7112
7113
7114<table class="params table table-striped">
7115 <thead>
7116 <tr>
7117
7118 <th style="width:12%; min-width:110px;">Name</th>
7119
7120
7121 <th style="width:12%; min-width:110px;">Type</th>
7122
7123
7124 <th style="width:12%; min-width:110px;">Argument</th>
7125
7126
7127
7128 <th style="width:12%; min-width:110px;">Default</th>
7129
7130
7131 <th class="last" style="min-width:310px;">Description</th>
7132 </tr>
7133 </thead>
7134
7135 <tbody>
7136
7137
7138 <tr>
7139
7140 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>element</code></td>
7141
7142
7143 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7144
7145
7146<span class="param-type">Node</span>
7147
7148
7149
7150
7151 </td>
7152
7153
7154 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7155
7156
7157
7158
7159
7160 </td>
7161
7162
7163
7164 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7165
7166 </td>
7167
7168
7169 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The element whose style property we want to get.</p></td>
7170 </tr>
7171
7172
7173
7174 <tr>
7175
7176 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
7177
7178
7179 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7180
7181
7182<span class="param-type">boolean</span>
7183
7184
7185
7186
7187 </td>
7188
7189
7190 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7191
7192 &lt;optional><br>
7193
7194
7195
7196
7197
7198 </td>
7199
7200
7201
7202 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7203
7204 false
7205
7206 </td>
7207
7208
7209 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will try to use the native function <a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle">window.getComputedStyle</a> (if available).</p></td>
7210 </tr>
7211
7212
7213 </tbody>
7214</table>
7215
7216
7217
7218
7219<dl class="details">
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
7250 <dd class="tag-source">
7251 <ul class="dummy">
7252 <li>
7253 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
7254 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-923">line 923</a>
7255 </li>
7256 </ul>
7257 </dd>
7258
7259
7260
7261
7262
7263
7264
7265</dl>
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279 <h5>Returns:</h5>
7280
7281
7282<div class="param-desc">
7283 <p>Returns an associative array (JavaScript object) with all the styles retrieved or null if nothing can be retrieved.</p>
7284</div>
7285
7286
7287
7288<dl>
7289 <dt>
7290 Type
7291 </dt>
7292 <dd>
7293
7294<span class="param-type">Object</span>
7295|
7296
7297<span class="param-type">null</span>
7298
7299
7300
7301 </dd>
7302</dl>
7303
7304
7305
7306
7307
7308</dd>
7309
7310
7311
7312<hr>
7313<dt>
7314 <h4 class="name" id=".getStyleById"><span class="type-signature">&lt;static> </span>getStyleById<span class="signature">(elementId [, computed])</span><span class="type-signature"> &rarr; {Object|null}</span></h4>
7315
7316
7317</dt>
7318<dd>
7319
7320
7321 <div class="description">
7322 <p>Returns the style of an element, computed or static (by its identifier):</p>
7323 </div>
7324
7325
7326
7327
7328
7329
7330
7331
7332 <h5>Parameters:</h5>
7333
7334
7335<table class="params table table-striped">
7336 <thead>
7337 <tr>
7338
7339 <th style="width:12%; min-width:110px;">Name</th>
7340
7341
7342 <th style="width:12%; min-width:110px;">Type</th>
7343
7344
7345 <th style="width:12%; min-width:110px;">Argument</th>
7346
7347
7348
7349 <th style="width:12%; min-width:110px;">Default</th>
7350
7351
7352 <th class="last" style="min-width:310px;">Description</th>
7353 </tr>
7354 </thead>
7355
7356 <tbody>
7357
7358
7359 <tr>
7360
7361 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>elementId</code></td>
7362
7363
7364 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7365
7366
7367<span class="param-type">string</span>
7368
7369
7370
7371
7372 </td>
7373
7374
7375 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7376
7377
7378
7379
7380
7381 </td>
7382
7383
7384
7385 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7386
7387 </td>
7388
7389
7390 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element whose style property we want to get.</p></td>
7391 </tr>
7392
7393
7394
7395 <tr>
7396
7397 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
7398
7399
7400 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7401
7402
7403<span class="param-type">boolean</span>
7404
7405
7406
7407
7408 </td>
7409
7410
7411 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7412
7413 &lt;optional><br>
7414
7415
7416
7417
7418
7419 </td>
7420
7421
7422
7423 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7424
7425 false
7426
7427 </td>
7428
7429
7430 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will try to use the native function <a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle">window.getComputedStyle</a> (if available).</p></td>
7431 </tr>
7432
7433
7434 </tbody>
7435</table>
7436
7437
7438
7439
7440<dl class="details">
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
7471 <dd class="tag-source">
7472 <ul class="dummy">
7473 <li>
7474 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
7475 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-955">line 955</a>
7476 </li>
7477 </ul>
7478 </dd>
7479
7480
7481
7482
7483
7484
7485
7486</dl>
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500 <h5>Returns:</h5>
7501
7502
7503<div class="param-desc">
7504 <p>Returns an associative array (JavaScript object) with all the styles retrieved or null if nothing can be retrieved.</p>
7505</div>
7506
7507
7508
7509<dl>
7510 <dt>
7511 Type
7512 </dt>
7513 <dd>
7514
7515<span class="param-type">Object</span>
7516|
7517
7518<span class="param-type">null</span>
7519
7520
7521
7522 </dd>
7523</dl>
7524
7525
7526
7527
7528
7529</dd>
7530
7531
7532
7533<hr>
7534<dt>
7535 <h4 class="name" id=".getStyleProperty"><span class="type-signature">&lt;static> </span>getStyleProperty<span class="signature">(element, attribute [, computed])</span><span class="type-signature"> &rarr; {*}</span></h4>
7536
7537
7538</dt>
7539<dd>
7540
7541
7542 <div class="description">
7543 <p>Returns the desired attribute value from the style of an element, computed or static:</p>
7544 </div>
7545
7546
7547
7548
7549
7550
7551
7552
7553 <h5>Parameters:</h5>
7554
7555
7556<table class="params table table-striped">
7557 <thead>
7558 <tr>
7559
7560 <th style="width:12%; min-width:110px;">Name</th>
7561
7562
7563 <th style="width:12%; min-width:110px;">Type</th>
7564
7565
7566 <th style="width:12%; min-width:110px;">Argument</th>
7567
7568
7569
7570 <th style="width:12%; min-width:110px;">Default</th>
7571
7572
7573 <th class="last" style="min-width:310px;">Description</th>
7574 </tr>
7575 </thead>
7576
7577 <tbody>
7578
7579
7580 <tr>
7581
7582 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>element</code></td>
7583
7584
7585 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7586
7587
7588<span class="param-type">Node</span>
7589
7590
7591
7592
7593 </td>
7594
7595
7596 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7597
7598
7599
7600
7601
7602 </td>
7603
7604
7605
7606 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7607
7608 </td>
7609
7610
7611 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The element whose attribute value from its style we want to get.</p></td>
7612 </tr>
7613
7614
7615
7616 <tr>
7617
7618 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>attribute</code></td>
7619
7620
7621 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7622
7623
7624<span class="param-type">string</span>
7625
7626
7627
7628
7629 </td>
7630
7631
7632 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7633
7634
7635
7636
7637
7638 </td>
7639
7640
7641
7642 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7643
7644 </td>
7645
7646
7647 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The name of the attribute whose value we want to get from the style.</p></td>
7648 </tr>
7649
7650
7651
7652 <tr>
7653
7654 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
7655
7656
7657 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7658
7659
7660<span class="param-type">boolean</span>
7661
7662
7663
7664
7665 </td>
7666
7667
7668 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7669
7670 &lt;optional><br>
7671
7672
7673
7674
7675
7676 </td>
7677
7678
7679
7680 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7681
7682 false
7683
7684 </td>
7685
7686
7687 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will try to use the native function <a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle">window.getComputedStyle</a> (if available).</p></td>
7688 </tr>
7689
7690
7691 </tbody>
7692</table>
7693
7694
7695
7696
7697<dl class="details">
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
7728 <dd class="tag-source">
7729 <ul class="dummy">
7730 <li>
7731 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
7732 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-970">line 970</a>
7733 </li>
7734 </ul>
7735 </dd>
7736
7737
7738
7739
7740
7741
7742
7743 <dt class="tag-todo method-doc-label method-doc-details-label">To Do:</dt>
7744 <dd class="tag-todo">
7745 <ul>
7746 <li>Think about supporting a boolean parameter to try to find the attribute having into account vendor prefixes (webkit, moz, ms, o, khtml).</li>
7747 </ul>
7748 </dd>
7749
7750</dl>
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764 <h5>Returns:</h5>
7765
7766
7767<div class="param-desc">
7768 <p>Returns null if nothing can be retrieved.</p>
7769</div>
7770
7771
7772
7773<dl>
7774 <dt>
7775 Type
7776 </dt>
7777 <dd>
7778
7779<span class="param-type">*</span>
7780
7781
7782
7783 </dd>
7784</dl>
7785
7786
7787
7788
7789
7790</dd>
7791
7792
7793
7794<hr>
7795<dt>
7796 <h4 class="name" id=".getStylePropertyById"><span class="type-signature">&lt;static> </span>getStylePropertyById<span class="signature">(elementId, attribute [, computed])</span><span class="type-signature"> &rarr; {*}</span></h4>
7797
7798
7799</dt>
7800<dd>
7801
7802
7803 <div class="description">
7804 <p>Returns the desired attribute value from the style of an element, computed or static (by its identifier):</p>
7805 </div>
7806
7807
7808
7809
7810
7811
7812
7813
7814 <h5>Parameters:</h5>
7815
7816
7817<table class="params table table-striped">
7818 <thead>
7819 <tr>
7820
7821 <th style="width:12%; min-width:110px;">Name</th>
7822
7823
7824 <th style="width:12%; min-width:110px;">Type</th>
7825
7826
7827 <th style="width:12%; min-width:110px;">Argument</th>
7828
7829
7830
7831 <th style="width:12%; min-width:110px;">Default</th>
7832
7833
7834 <th class="last" style="min-width:310px;">Description</th>
7835 </tr>
7836 </thead>
7837
7838 <tbody>
7839
7840
7841 <tr>
7842
7843 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>elementId</code></td>
7844
7845
7846 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7847
7848
7849<span class="param-type">string</span>
7850
7851
7852
7853
7854 </td>
7855
7856
7857 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7858
7859
7860
7861
7862
7863 </td>
7864
7865
7866
7867 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7868
7869 </td>
7870
7871
7872 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element whose attribute value from its style we want to get.</p></td>
7873 </tr>
7874
7875
7876
7877 <tr>
7878
7879 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>attribute</code></td>
7880
7881
7882 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7883
7884
7885<span class="param-type">string</span>
7886
7887
7888
7889
7890 </td>
7891
7892
7893 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7894
7895
7896
7897
7898
7899 </td>
7900
7901
7902
7903 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7904
7905 </td>
7906
7907
7908 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The name of the attribute whose value we want to get from the style.</p></td>
7909 </tr>
7910
7911
7912
7913 <tr>
7914
7915 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
7916
7917
7918 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7919
7920
7921<span class="param-type">boolean</span>
7922
7923
7924
7925
7926 </td>
7927
7928
7929 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7930
7931 &lt;optional><br>
7932
7933
7934
7935
7936
7937 </td>
7938
7939
7940
7941 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
7942
7943 false
7944
7945 </td>
7946
7947
7948 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will try to use the native function <a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle">window.getComputedStyle</a> (if available).</p></td>
7949 </tr>
7950
7951
7952 </tbody>
7953</table>
7954
7955
7956
7957
7958<dl class="details">
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
7989 <dd class="tag-source">
7990 <ul class="dummy">
7991 <li>
7992 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
7993 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-991">line 991</a>
7994 </li>
7995 </ul>
7996 </dd>
7997
7998
7999
8000
8001
8002
8003
8004 <dt class="tag-todo method-doc-label method-doc-details-label">To Do:</dt>
8005 <dd class="tag-todo">
8006 <ul>
8007 <li>Think about supporting a boolean parameter to try to find the attribute having into account vendor prefixes (webkit, moz, ms, o, khtml).</li>
8008 </ul>
8009 </dd>
8010
8011</dl>
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025 <h5>Returns:</h5>
8026
8027
8028<div class="param-desc">
8029 <p>Returns null if nothing can be retrieved.</p>
8030</div>
8031
8032
8033
8034<dl>
8035 <dt>
8036 Type
8037 </dt>
8038 <dd>
8039
8040<span class="param-type">*</span>
8041
8042
8043
8044 </dd>
8045</dl>
8046
8047
8048
8049
8050
8051</dd>
8052
8053
8054
8055<hr>
8056<dt>
8057 <h4 class="name" id=".getStylePropertyInteger"><span class="type-signature">&lt;static> </span>getStylePropertyInteger<span class="signature">(element, attribute [, computed])</span><span class="type-signature"> &rarr; {array}</span></h4>
8058
8059
8060</dt>
8061<dd>
8062
8063
8064 <div class="description">
8065 <p>Returns the integer value or values (base decimal) of a desired attribute from the style of an element, computed or static:</p>
8066 </div>
8067
8068
8069
8070
8071
8072
8073
8074
8075 <h5>Parameters:</h5>
8076
8077
8078<table class="params table table-striped">
8079 <thead>
8080 <tr>
8081
8082 <th style="width:12%; min-width:110px;">Name</th>
8083
8084
8085 <th style="width:12%; min-width:110px;">Type</th>
8086
8087
8088 <th style="width:12%; min-width:110px;">Argument</th>
8089
8090
8091
8092 <th style="width:12%; min-width:110px;">Default</th>
8093
8094
8095 <th class="last" style="min-width:310px;">Description</th>
8096 </tr>
8097 </thead>
8098
8099 <tbody>
8100
8101
8102 <tr>
8103
8104 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>element</code></td>
8105
8106
8107 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8108
8109
8110<span class="param-type">Node</span>
8111
8112
8113
8114
8115 </td>
8116
8117
8118 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8119
8120
8121
8122
8123
8124 </td>
8125
8126
8127
8128 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8129
8130 </td>
8131
8132
8133 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The element whose attribute value from its style we want to get.</p></td>
8134 </tr>
8135
8136
8137
8138 <tr>
8139
8140 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>attribute</code></td>
8141
8142
8143 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8144
8145
8146<span class="param-type">string</span>
8147
8148
8149
8150
8151 </td>
8152
8153
8154 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8155
8156
8157
8158
8159
8160 </td>
8161
8162
8163
8164 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8165
8166 </td>
8167
8168
8169 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The name of the attribute whose value we want to get from the style.</p></td>
8170 </tr>
8171
8172
8173
8174 <tr>
8175
8176 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
8177
8178
8179 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8180
8181
8182<span class="param-type">boolean</span>
8183
8184
8185
8186
8187 </td>
8188
8189
8190 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8191
8192 &lt;optional><br>
8193
8194
8195
8196
8197
8198 </td>
8199
8200
8201
8202 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8203
8204 false
8205
8206 </td>
8207
8208
8209 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will try to use the native function <a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle">window.getComputedStyle</a> (if available).</p></td>
8210 </tr>
8211
8212
8213 </tbody>
8214</table>
8215
8216
8217
8218
8219<dl class="details">
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
8250 <dd class="tag-source">
8251 <ul class="dummy">
8252 <li>
8253 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
8254 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1006">line 1006</a>
8255 </li>
8256 </ul>
8257 </dd>
8258
8259
8260
8261
8262
8263
8264
8265 <dt class="tag-todo method-doc-label method-doc-details-label">To Do:</dt>
8266 <dd class="tag-todo">
8267 <ul>
8268 <li>Think about supporting a boolean parameter to try to find the attribute having into account vendor prefixes (webkit, moz, ms, o, khtml).</li>
8269 </ul>
8270 </dd>
8271
8272</dl>
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286 <h5>Returns:</h5>
8287
8288
8289<div class="param-desc">
8290 <p>Returns a numeric array with the values retrieved. If nothing could be retrieved, the first and unique index of the array will contain the value of zero (0).</p>
8291</div>
8292
8293
8294
8295<dl>
8296 <dt>
8297 Type
8298 </dt>
8299 <dd>
8300
8301<span class="param-type">array</span>
8302
8303
8304
8305 </dd>
8306</dl>
8307
8308
8309
8310
8311
8312</dd>
8313
8314
8315
8316<hr>
8317<dt>
8318 <h4 class="name" id=".getStylePropertyIntegerById"><span class="type-signature">&lt;static> </span>getStylePropertyIntegerById<span class="signature">(elementId, attribute [, computed])</span><span class="type-signature"> &rarr; {array}</span></h4>
8319
8320
8321</dt>
8322<dd>
8323
8324
8325 <div class="description">
8326 <p>Returns the integer value or values (base decimal) of a desired attribute from the style of an element, computed or static (by its identifier):</p>
8327 </div>
8328
8329
8330
8331
8332
8333
8334
8335
8336 <h5>Parameters:</h5>
8337
8338
8339<table class="params table table-striped">
8340 <thead>
8341 <tr>
8342
8343 <th style="width:12%; min-width:110px;">Name</th>
8344
8345
8346 <th style="width:12%; min-width:110px;">Type</th>
8347
8348
8349 <th style="width:12%; min-width:110px;">Argument</th>
8350
8351
8352
8353 <th style="width:12%; min-width:110px;">Default</th>
8354
8355
8356 <th class="last" style="min-width:310px;">Description</th>
8357 </tr>
8358 </thead>
8359
8360 <tbody>
8361
8362
8363 <tr>
8364
8365 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>elementId</code></td>
8366
8367
8368 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8369
8370
8371<span class="param-type">string</span>
8372
8373
8374
8375
8376 </td>
8377
8378
8379 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8380
8381
8382
8383
8384
8385 </td>
8386
8387
8388
8389 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8390
8391 </td>
8392
8393
8394 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element whose attribute value from its style we want to get.</p></td>
8395 </tr>
8396
8397
8398
8399 <tr>
8400
8401 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>attribute</code></td>
8402
8403
8404 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8405
8406
8407<span class="param-type">string</span>
8408
8409
8410
8411
8412 </td>
8413
8414
8415 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8416
8417
8418
8419
8420
8421 </td>
8422
8423
8424
8425 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8426
8427 </td>
8428
8429
8430 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The name of the attribute whose value we want to get from the style.</p></td>
8431 </tr>
8432
8433
8434
8435 <tr>
8436
8437 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
8438
8439
8440 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8441
8442
8443<span class="param-type">boolean</span>
8444
8445
8446
8447
8448 </td>
8449
8450
8451 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8452
8453 &lt;optional><br>
8454
8455
8456
8457
8458
8459 </td>
8460
8461
8462
8463 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8464
8465 false
8466
8467 </td>
8468
8469
8470 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will try to use the native function <a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle">window.getComputedStyle</a> (if available).</p></td>
8471 </tr>
8472
8473
8474 </tbody>
8475</table>
8476
8477
8478
8479
8480<dl class="details">
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
8511 <dd class="tag-source">
8512 <ul class="dummy">
8513 <li>
8514 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
8515 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1021">line 1021</a>
8516 </li>
8517 </ul>
8518 </dd>
8519
8520
8521
8522
8523
8524
8525
8526 <dt class="tag-todo method-doc-label method-doc-details-label">To Do:</dt>
8527 <dd class="tag-todo">
8528 <ul>
8529 <li>Think about supporting a boolean parameter to try to find the attribute having into account vendor prefixes (webkit, moz, ms, o, khtml).</li>
8530 </ul>
8531 </dd>
8532
8533</dl>
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547 <h5>Returns:</h5>
8548
8549
8550<div class="param-desc">
8551 <p>Returns a numeric array with the values retrieved. If nothing could be retrieved, the first and unique index of the array will contain the value of zero (0).</p>
8552</div>
8553
8554
8555
8556<dl>
8557 <dt>
8558 Type
8559 </dt>
8560 <dd>
8561
8562<span class="param-type">array</span>
8563
8564
8565
8566 </dd>
8567</dl>
8568
8569
8570
8571
8572
8573</dd>
8574
8575
8576
8577<hr>
8578<dt>
8579 <h4 class="name" id=".getStylePropertyNumeric"><span class="type-signature">&lt;static> </span>getStylePropertyNumeric<span class="signature">(element, attribute [, computed] [, parseToInteger])</span><span class="type-signature"> &rarr; {array}</span></h4>
8580
8581
8582</dt>
8583<dd>
8584
8585
8586 <div class="description">
8587 <p>Returns the numeric value or values (base decimal) of a desired attribute from the style of an element, computed or static:</p>
8588 </div>
8589
8590
8591
8592
8593
8594
8595
8596
8597 <h5>Parameters:</h5>
8598
8599
8600<table class="params table table-striped">
8601 <thead>
8602 <tr>
8603
8604 <th style="width:12%; min-width:110px;">Name</th>
8605
8606
8607 <th style="width:12%; min-width:110px;">Type</th>
8608
8609
8610 <th style="width:12%; min-width:110px;">Argument</th>
8611
8612
8613
8614 <th style="width:12%; min-width:110px;">Default</th>
8615
8616
8617 <th class="last" style="min-width:310px;">Description</th>
8618 </tr>
8619 </thead>
8620
8621 <tbody>
8622
8623
8624 <tr>
8625
8626 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>element</code></td>
8627
8628
8629 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8630
8631
8632<span class="param-type">Node</span>
8633
8634
8635
8636
8637 </td>
8638
8639
8640 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8641
8642
8643
8644
8645
8646 </td>
8647
8648
8649
8650 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8651
8652 </td>
8653
8654
8655 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The element whose attribute value from its style we want to get.</p></td>
8656 </tr>
8657
8658
8659
8660 <tr>
8661
8662 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>attribute</code></td>
8663
8664
8665 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8666
8667
8668<span class="param-type">string</span>
8669
8670
8671
8672
8673 </td>
8674
8675
8676 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8677
8678
8679
8680
8681
8682 </td>
8683
8684
8685
8686 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8687
8688 </td>
8689
8690
8691 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The name of the attribute whose value we want to get from the style.</p></td>
8692 </tr>
8693
8694
8695
8696 <tr>
8697
8698 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
8699
8700
8701 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8702
8703
8704<span class="param-type">boolean</span>
8705
8706
8707
8708
8709 </td>
8710
8711
8712 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8713
8714 &lt;optional><br>
8715
8716
8717
8718
8719
8720 </td>
8721
8722
8723
8724 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8725
8726 false
8727
8728 </td>
8729
8730
8731 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will try to use the native function <a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle">window.getComputedStyle</a> (if available).</p></td>
8732 </tr>
8733
8734
8735
8736 <tr>
8737
8738 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>parseToInteger</code></td>
8739
8740
8741 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8742
8743
8744<span class="param-type">boolean</span>
8745
8746
8747
8748
8749 </td>
8750
8751
8752 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8753
8754 &lt;optional><br>
8755
8756
8757
8758
8759
8760 </td>
8761
8762
8763
8764 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8765
8766 false
8767
8768 </td>
8769
8770
8771 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, the value or values will be parsed to integer.</p></td>
8772 </tr>
8773
8774
8775 </tbody>
8776</table>
8777
8778
8779
8780
8781<dl class="details">
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
8812 <dd class="tag-source">
8813 <ul class="dummy">
8814 <li>
8815 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
8816 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1037">line 1037</a>
8817 </li>
8818 </ul>
8819 </dd>
8820
8821
8822
8823
8824
8825
8826
8827 <dt class="tag-todo method-doc-label method-doc-details-label">To Do:</dt>
8828 <dd class="tag-todo">
8829 <ul>
8830 <li>Think about supporting a boolean parameter to try to find the attribute having into account vendor prefixes (webkit, moz, ms, o, khtml).</li>
8831 </ul>
8832 </dd>
8833
8834</dl>
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848 <h5>Returns:</h5>
8849
8850
8851<div class="param-desc">
8852 <p>Returns a numeric array with the values retrieved. If nothing could be retrieved, the first and unique index of the array will contain the value of zero (0).</p>
8853</div>
8854
8855
8856
8857<dl>
8858 <dt>
8859 Type
8860 </dt>
8861 <dd>
8862
8863<span class="param-type">array</span>
8864
8865
8866
8867 </dd>
8868</dl>
8869
8870
8871
8872
8873
8874</dd>
8875
8876
8877
8878<hr>
8879<dt>
8880 <h4 class="name" id=".getStylePropertyNumericById"><span class="type-signature">&lt;static> </span>getStylePropertyNumericById<span class="signature">(elementId, attribute [, computed] [, parseToInteger])</span><span class="type-signature"> &rarr; {array}</span></h4>
8881
8882
8883</dt>
8884<dd>
8885
8886
8887 <div class="description">
8888 <p>Returns the numeric value or values (base decimal) of a desired attribute from the style of an element, computed or static (by its identifier):</p>
8889 </div>
8890
8891
8892
8893
8894
8895
8896
8897
8898 <h5>Parameters:</h5>
8899
8900
8901<table class="params table table-striped">
8902 <thead>
8903 <tr>
8904
8905 <th style="width:12%; min-width:110px;">Name</th>
8906
8907
8908 <th style="width:12%; min-width:110px;">Type</th>
8909
8910
8911 <th style="width:12%; min-width:110px;">Argument</th>
8912
8913
8914
8915 <th style="width:12%; min-width:110px;">Default</th>
8916
8917
8918 <th class="last" style="min-width:310px;">Description</th>
8919 </tr>
8920 </thead>
8921
8922 <tbody>
8923
8924
8925 <tr>
8926
8927 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>elementId</code></td>
8928
8929
8930 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8931
8932
8933<span class="param-type">string</span>
8934
8935
8936
8937
8938 </td>
8939
8940
8941 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8942
8943
8944
8945
8946
8947 </td>
8948
8949
8950
8951 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8952
8953 </td>
8954
8955
8956 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element whose attribute value from its style we want to get.</p></td>
8957 </tr>
8958
8959
8960
8961 <tr>
8962
8963 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>attribute</code></td>
8964
8965
8966 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8967
8968
8969<span class="param-type">string</span>
8970
8971
8972
8973
8974 </td>
8975
8976
8977 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8978
8979
8980
8981
8982
8983 </td>
8984
8985
8986
8987 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
8988
8989 </td>
8990
8991
8992 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The name of the attribute whose value we want to get from the style.</p></td>
8993 </tr>
8994
8995
8996
8997 <tr>
8998
8999 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
9000
9001
9002 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9003
9004
9005<span class="param-type">boolean</span>
9006
9007
9008
9009
9010 </td>
9011
9012
9013 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9014
9015 &lt;optional><br>
9016
9017
9018
9019
9020
9021 </td>
9022
9023
9024
9025 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9026
9027 false
9028
9029 </td>
9030
9031
9032 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will try to use the native function <a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle">window.getComputedStyle</a> (if available).</p></td>
9033 </tr>
9034
9035
9036
9037 <tr>
9038
9039 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>parseToInteger</code></td>
9040
9041
9042 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9043
9044
9045<span class="param-type">boolean</span>
9046
9047
9048
9049
9050 </td>
9051
9052
9053 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9054
9055 &lt;optional><br>
9056
9057
9058
9059
9060
9061 </td>
9062
9063
9064
9065 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9066
9067 false
9068
9069 </td>
9070
9071
9072 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, the value or values will be parsed to integer.</p></td>
9073 </tr>
9074
9075
9076 </tbody>
9077</table>
9078
9079
9080
9081
9082<dl class="details">
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
9113 <dd class="tag-source">
9114 <ul class="dummy">
9115 <li>
9116 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
9117 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1082">line 1082</a>
9118 </li>
9119 </ul>
9120 </dd>
9121
9122
9123
9124
9125
9126
9127
9128 <dt class="tag-todo method-doc-label method-doc-details-label">To Do:</dt>
9129 <dd class="tag-todo">
9130 <ul>
9131 <li>Think about supporting a boolean parameter to try to find the attribute having into account vendor prefixes (webkit, moz, ms, o, khtml).</li>
9132 </ul>
9133 </dd>
9134
9135</dl>
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149 <h5>Returns:</h5>
9150
9151
9152<div class="param-desc">
9153 <p>Returns a numeric array with the values retrieved. If nothing could be retrieved, the first and unique index of the array will contain the value of zero (0).</p>
9154</div>
9155
9156
9157
9158<dl>
9159 <dt>
9160 Type
9161 </dt>
9162 <dd>
9163
9164<span class="param-type">array</span>
9165
9166
9167
9168 </dd>
9169</dl>
9170
9171
9172
9173
9174
9175</dd>
9176
9177
9178
9179<hr>
9180<dt>
9181 <h4 class="name" id=".getTop"><span class="type-signature">&lt;static> </span>getTop<span class="signature">(element [, ignoreScroll] [, returnNullOnFail] [, computed])</span><span class="type-signature"> &rarr; {*}</span></h4>
9182
9183
9184</dt>
9185<dd>
9186
9187
9188 <div class="description">
9189 <p>Returns the top position of an element (having in mind <a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect">getBoundingClientRect</a> if available, its parents, etc.).</p>
9190 </div>
9191
9192
9193
9194
9195
9196
9197
9198
9199 <h5>Parameters:</h5>
9200
9201
9202<table class="params table table-striped">
9203 <thead>
9204 <tr>
9205
9206 <th style="width:12%; min-width:110px;">Name</th>
9207
9208
9209 <th style="width:12%; min-width:110px;">Type</th>
9210
9211
9212 <th style="width:12%; min-width:110px;">Argument</th>
9213
9214
9215
9216 <th style="width:12%; min-width:110px;">Default</th>
9217
9218
9219 <th class="last" style="min-width:310px;">Description</th>
9220 </tr>
9221 </thead>
9222
9223 <tbody>
9224
9225
9226 <tr>
9227
9228 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>element</code></td>
9229
9230
9231 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9232
9233
9234<span class="param-type">Node</span>
9235
9236
9237
9238
9239 </td>
9240
9241
9242 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9243
9244
9245
9246
9247
9248 </td>
9249
9250
9251
9252 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9253
9254 </td>
9255
9256
9257 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The element whose data we are interested in.</p></td>
9258 </tr>
9259
9260
9261
9262 <tr>
9263
9264 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>ignoreScroll</code></td>
9265
9266
9267 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9268
9269
9270<span class="param-type">boolean</span>
9271
9272
9273
9274
9275 </td>
9276
9277
9278 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9279
9280 &lt;optional><br>
9281
9282
9283
9284
9285
9286 </td>
9287
9288
9289
9290 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9291
9292 true
9293
9294 </td>
9295
9296
9297 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to false, it will have in mind the current scroll position to calculate the result.</p></td>
9298 </tr>
9299
9300
9301
9302 <tr>
9303
9304 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>returnNullOnFail</code></td>
9305
9306
9307 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9308
9309
9310<span class="param-type">function</span>
9311
9312
9313
9314
9315 </td>
9316
9317
9318 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9319
9320 &lt;optional><br>
9321
9322
9323
9324
9325
9326 </td>
9327
9328
9329
9330 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9331
9332 false
9333
9334 </td>
9335
9336
9337 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will return null instead of zero (0) in the case that something goes wrong.</p></td>
9338 </tr>
9339
9340
9341
9342 <tr>
9343
9344 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
9345
9346
9347 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9348
9349
9350<span class="param-type">boolean</span>
9351
9352
9353
9354
9355 </td>
9356
9357
9358 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9359
9360 &lt;optional><br>
9361
9362
9363
9364
9365
9366 </td>
9367
9368
9369
9370 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9371
9372 false
9373
9374 </td>
9375
9376
9377 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>This parameter will be used when it calls <a href="CB_Elements.html#.getStyleProperty"><code>CB_Elements.getStyleProperty</code></a> and <a href="CB_Elements.html#.getStylePropertyInteger"><code>CB_Elements.getStylePropertyInteger</code></a> internally.</p></td>
9378 </tr>
9379
9380
9381 </tbody>
9382</table>
9383
9384
9385
9386
9387<dl class="details">
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
9418 <dd class="tag-source">
9419 <ul class="dummy">
9420 <li>
9421 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
9422 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1526">line 1526</a>
9423 </li>
9424 </ul>
9425 </dd>
9426
9427
9428
9429
9430
9431
9432
9433</dl>
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447 <h5>Returns:</h5>
9448
9449
9450<div class="param-desc">
9451 <p>It could return zero (0) or even a non-numeric value if something fails (use &quot;returnNullOnFail&quot; set to true to return null when it fails).</p>
9452</div>
9453
9454
9455
9456<dl>
9457 <dt>
9458 Type
9459 </dt>
9460 <dd>
9461
9462<span class="param-type">*</span>
9463
9464
9465
9466 </dd>
9467</dl>
9468
9469
9470
9471
9472
9473</dd>
9474
9475
9476
9477<hr>
9478<dt>
9479 <h4 class="name" id=".getTopById"><span class="type-signature">&lt;static> </span>getTopById<span class="signature">(elementId [, ignoreScroll] [, returnNullOnFail] [, computed])</span><span class="type-signature"> &rarr; {*}</span></h4>
9480
9481
9482</dt>
9483<dd>
9484
9485
9486 <div class="description">
9487 <p>Returns the top position of an element (having in mind <a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect">getBoundingClientRect</a> if available, its parents, etc.), by its identifier.</p>
9488 </div>
9489
9490
9491
9492
9493
9494
9495
9496
9497 <h5>Parameters:</h5>
9498
9499
9500<table class="params table table-striped">
9501 <thead>
9502 <tr>
9503
9504 <th style="width:12%; min-width:110px;">Name</th>
9505
9506
9507 <th style="width:12%; min-width:110px;">Type</th>
9508
9509
9510 <th style="width:12%; min-width:110px;">Argument</th>
9511
9512
9513
9514 <th style="width:12%; min-width:110px;">Default</th>
9515
9516
9517 <th class="last" style="min-width:310px;">Description</th>
9518 </tr>
9519 </thead>
9520
9521 <tbody>
9522
9523
9524 <tr>
9525
9526 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>elementId</code></td>
9527
9528
9529 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9530
9531
9532<span class="param-type">string</span>
9533
9534
9535
9536
9537 </td>
9538
9539
9540 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9541
9542
9543
9544
9545
9546 </td>
9547
9548
9549
9550 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9551
9552 </td>
9553
9554
9555 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element whose data we are interested in.</p></td>
9556 </tr>
9557
9558
9559
9560 <tr>
9561
9562 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>ignoreScroll</code></td>
9563
9564
9565 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9566
9567
9568<span class="param-type">boolean</span>
9569
9570
9571
9572
9573 </td>
9574
9575
9576 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9577
9578 &lt;optional><br>
9579
9580
9581
9582
9583
9584 </td>
9585
9586
9587
9588 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9589
9590 true
9591
9592 </td>
9593
9594
9595 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to false, it will have in mind the current scroll position to calculate the result.</p></td>
9596 </tr>
9597
9598
9599
9600 <tr>
9601
9602 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>returnNullOnFail</code></td>
9603
9604
9605 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9606
9607
9608<span class="param-type">function</span>
9609
9610
9611
9612
9613 </td>
9614
9615
9616 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9617
9618 &lt;optional><br>
9619
9620
9621
9622
9623
9624 </td>
9625
9626
9627
9628 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9629
9630 false
9631
9632 </td>
9633
9634
9635 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will return null instead of zero (0) in the case that something goes wrong.</p></td>
9636 </tr>
9637
9638
9639
9640 <tr>
9641
9642 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
9643
9644
9645 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9646
9647
9648<span class="param-type">boolean</span>
9649
9650
9651
9652
9653 </td>
9654
9655
9656 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9657
9658 &lt;optional><br>
9659
9660
9661
9662
9663
9664 </td>
9665
9666
9667
9668 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9669
9670 false
9671
9672 </td>
9673
9674
9675 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>This parameter will be used when it calls <a href="CB_Elements.html#.getStyleProperty"><code>CB_Elements.getStyleProperty</code></a> and <a href="CB_Elements.html#.getStylePropertyInteger"><code>CB_Elements.getStylePropertyInteger</code></a> internally.</p></td>
9676 </tr>
9677
9678
9679 </tbody>
9680</table>
9681
9682
9683
9684
9685<dl class="details">
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
9716 <dd class="tag-source">
9717 <ul class="dummy">
9718 <li>
9719 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
9720 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1638">line 1638</a>
9721 </li>
9722 </ul>
9723 </dd>
9724
9725
9726
9727
9728
9729
9730
9731</dl>
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745 <h5>Returns:</h5>
9746
9747
9748<div class="param-desc">
9749 <p>It could return zero (0) or even a non-numeric value if something fails (use &quot;returnNullOnFail&quot; set to true to return null when it fails).</p>
9750</div>
9751
9752
9753
9754<dl>
9755 <dt>
9756 Type
9757 </dt>
9758 <dd>
9759
9760<span class="param-type">*</span>
9761
9762
9763
9764 </dd>
9765</dl>
9766
9767
9768
9769
9770
9771</dd>
9772
9773
9774
9775<hr>
9776<dt>
9777 <h4 class="name" id=".getWidth"><span class="type-signature">&lt;static> </span>getWidth<span class="signature">(element [, returnNullOnFail] [, computed])</span><span class="type-signature"> &rarr; {*}</span></h4>
9778
9779
9780</dt>
9781<dd>
9782
9783
9784 <div class="description">
9785 <p>Returns the width of an element (having in mind its border).</p>
9786 </div>
9787
9788
9789
9790
9791
9792
9793
9794
9795 <h5>Parameters:</h5>
9796
9797
9798<table class="params table table-striped">
9799 <thead>
9800 <tr>
9801
9802 <th style="width:12%; min-width:110px;">Name</th>
9803
9804
9805 <th style="width:12%; min-width:110px;">Type</th>
9806
9807
9808 <th style="width:12%; min-width:110px;">Argument</th>
9809
9810
9811
9812 <th style="width:12%; min-width:110px;">Default</th>
9813
9814
9815 <th class="last" style="min-width:310px;">Description</th>
9816 </tr>
9817 </thead>
9818
9819 <tbody>
9820
9821
9822 <tr>
9823
9824 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>element</code></td>
9825
9826
9827 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9828
9829
9830<span class="param-type">Node</span>
9831
9832
9833
9834
9835 </td>
9836
9837
9838 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9839
9840
9841
9842
9843
9844 </td>
9845
9846
9847
9848 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9849
9850 </td>
9851
9852
9853 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The element whose data we are interested in.</p></td>
9854 </tr>
9855
9856
9857
9858 <tr>
9859
9860 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>returnNullOnFail</code></td>
9861
9862
9863 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9864
9865
9866<span class="param-type">function</span>
9867
9868
9869
9870
9871 </td>
9872
9873
9874 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9875
9876 &lt;optional><br>
9877
9878
9879
9880
9881
9882 </td>
9883
9884
9885
9886 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9887
9888 false
9889
9890 </td>
9891
9892
9893 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will return null instead of zero (0) in the case that something goes wrong.</p></td>
9894 </tr>
9895
9896
9897
9898 <tr>
9899
9900 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
9901
9902
9903 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9904
9905
9906<span class="param-type">boolean</span>
9907
9908
9909
9910
9911 </td>
9912
9913
9914 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9915
9916 &lt;optional><br>
9917
9918
9919
9920
9921
9922 </td>
9923
9924
9925
9926 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
9927
9928 false
9929
9930 </td>
9931
9932
9933 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>This parameter will be used when it calls <a href="CB_Elements.html#.getStylePropertyInteger"><code>CB_Elements.getStylePropertyInteger</code></a> internally.</p></td>
9934 </tr>
9935
9936
9937 </tbody>
9938</table>
9939
9940
9941
9942
9943<dl class="details">
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
9974 <dd class="tag-source">
9975 <ul class="dummy">
9976 <li>
9977 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
9978 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1652">line 1652</a>
9979 </li>
9980 </ul>
9981 </dd>
9982
9983
9984
9985
9986
9987
9988
9989</dl>
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003 <h5>Returns:</h5>
10004
10005
10006<div class="param-desc">
10007 <p>It could return zero (0) or even a non-numeric value if something fails (use &quot;returnNullOnFail&quot; set to true to return null when it fails).</p>
10008</div>
10009
10010
10011
10012<dl>
10013 <dt>
10014 Type
10015 </dt>
10016 <dd>
10017
10018<span class="param-type">*</span>
10019
10020
10021
10022 </dd>
10023</dl>
10024
10025
10026
10027
10028
10029</dd>
10030
10031
10032
10033<hr>
10034<dt>
10035 <h4 class="name" id=".getWidthById"><span class="type-signature">&lt;static> </span>getWidthById<span class="signature">(elementId [, returnNullOnFail] [, computed])</span><span class="type-signature"> &rarr; {*}</span></h4>
10036
10037
10038</dt>
10039<dd>
10040
10041
10042 <div class="description">
10043 <p>Returns the width of an element (having in mind its border), by its identifier.</p>
10044 </div>
10045
10046
10047
10048
10049
10050
10051
10052
10053 <h5>Parameters:</h5>
10054
10055
10056<table class="params table table-striped">
10057 <thead>
10058 <tr>
10059
10060 <th style="width:12%; min-width:110px;">Name</th>
10061
10062
10063 <th style="width:12%; min-width:110px;">Type</th>
10064
10065
10066 <th style="width:12%; min-width:110px;">Argument</th>
10067
10068
10069
10070 <th style="width:12%; min-width:110px;">Default</th>
10071
10072
10073 <th class="last" style="min-width:310px;">Description</th>
10074 </tr>
10075 </thead>
10076
10077 <tbody>
10078
10079
10080 <tr>
10081
10082 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>elementId</code></td>
10083
10084
10085 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10086
10087
10088<span class="param-type">string</span>
10089
10090
10091
10092
10093 </td>
10094
10095
10096 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10097
10098
10099
10100
10101
10102 </td>
10103
10104
10105
10106 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10107
10108 </td>
10109
10110
10111 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element whose data we are interested in.</p></td>
10112 </tr>
10113
10114
10115
10116 <tr>
10117
10118 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>returnNullOnFail</code></td>
10119
10120
10121 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10122
10123
10124<span class="param-type">function</span>
10125
10126
10127
10128
10129 </td>
10130
10131
10132 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10133
10134 &lt;optional><br>
10135
10136
10137
10138
10139
10140 </td>
10141
10142
10143
10144 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10145
10146 false
10147
10148 </td>
10149
10150
10151 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will return null instead of zero (0) in the case that something goes wrong.</p></td>
10152 </tr>
10153
10154
10155
10156 <tr>
10157
10158 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
10159
10160
10161 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10162
10163
10164<span class="param-type">boolean</span>
10165
10166
10167
10168
10169 </td>
10170
10171
10172 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10173
10174 &lt;optional><br>
10175
10176
10177
10178
10179
10180 </td>
10181
10182
10183
10184 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10185
10186 false
10187
10188 </td>
10189
10190
10191 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>This parameter will be used when it calls <a href="CB_Elements.html#.getStylePropertyInteger"><code>CB_Elements.getStylePropertyInteger</code></a> internally.</p></td>
10192 </tr>
10193
10194
10195 </tbody>
10196</table>
10197
10198
10199
10200
10201<dl class="details">
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
10232 <dd class="tag-source">
10233 <ul class="dummy">
10234 <li>
10235 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
10236 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1702">line 1702</a>
10237 </li>
10238 </ul>
10239 </dd>
10240
10241
10242
10243
10244
10245
10246
10247</dl>
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261 <h5>Returns:</h5>
10262
10263
10264<div class="param-desc">
10265 <p>It could return zero (0) or even a non-numeric value if something fails (use &quot;returnNullOnFail&quot; set to true to return null when it fails).</p>
10266</div>
10267
10268
10269
10270<dl>
10271 <dt>
10272 Type
10273 </dt>
10274 <dd>
10275
10276<span class="param-type">*</span>
10277
10278
10279
10280 </dd>
10281</dl>
10282
10283
10284
10285
10286
10287</dd>
10288
10289
10290
10291<hr>
10292<dt>
10293 <h4 class="name" id=".hide"><span class="type-signature">&lt;static> </span>hide<span class="signature">(element [, checkValues] [, computed] [, onHide])</span><span class="type-signature"> &rarr; {Node}</span></h4>
10294
10295
10296</dt>
10297<dd>
10298
10299
10300 <div class="description">
10301 <p>Hides a given element by changing its <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> property to &quot;none&quot; and its <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/visibility">visibility</a> to &quot;hidden&quot;.</p>
10302 </div>
10303
10304
10305
10306
10307
10308
10309
10310
10311 <h5>Parameters:</h5>
10312
10313
10314<table class="params table table-striped">
10315 <thead>
10316 <tr>
10317
10318 <th style="width:12%; min-width:110px;">Name</th>
10319
10320
10321 <th style="width:12%; min-width:110px;">Type</th>
10322
10323
10324 <th style="width:12%; min-width:110px;">Argument</th>
10325
10326
10327
10328 <th style="width:12%; min-width:110px;">Default</th>
10329
10330
10331 <th class="last" style="min-width:310px;">Description</th>
10332 </tr>
10333 </thead>
10334
10335 <tbody>
10336
10337
10338 <tr>
10339
10340 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>element</code></td>
10341
10342
10343 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10344
10345
10346<span class="param-type">Node</span>
10347
10348
10349
10350
10351 </td>
10352
10353
10354 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10355
10356
10357
10358
10359
10360 </td>
10361
10362
10363
10364 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10365
10366 </td>
10367
10368
10369 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The element that we want to hide.</p></td>
10370 </tr>
10371
10372
10373
10374 <tr>
10375
10376 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>checkValues</code></td>
10377
10378
10379 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10380
10381
10382<span class="param-type">boolean</span>
10383
10384
10385
10386
10387 </td>
10388
10389
10390 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10391
10392 &lt;optional><br>
10393
10394
10395
10396
10397
10398 </td>
10399
10400
10401
10402 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10403
10404 false
10405
10406 </td>
10407
10408
10409 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will only perform the change if either the current <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/visibility">visibility</a> property is not &quot;hidden&quot; or the current <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> property is not &quot;none&quot;.</p></td>
10410 </tr>
10411
10412
10413
10414 <tr>
10415
10416 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
10417
10418
10419 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10420
10421
10422<span class="param-type">boolean</span>
10423
10424
10425
10426
10427 </td>
10428
10429
10430 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10431
10432 &lt;optional><br>
10433
10434
10435
10436
10437
10438 </td>
10439
10440
10441
10442 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10443
10444 false
10445
10446 </td>
10447
10448
10449 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>This parameter will be used when it calls <a href="CB_Elements.html#.getStyle"><code>CB_Elements.getStyle</code></a> internally.</p></td>
10450 </tr>
10451
10452
10453
10454 <tr>
10455
10456 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onHide</code></td>
10457
10458
10459 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10460
10461
10462<span class="param-type">function</span>
10463
10464
10465
10466
10467 </td>
10468
10469
10470 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10471
10472 &lt;optional><br>
10473
10474
10475
10476
10477
10478 </td>
10479
10480
10481
10482 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10483
10484 </td>
10485
10486
10487 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Callback function that will be called if the element has been hidden, after doing it (this will happens always if &quot;checkValues&quot; is false). The first parameter passed will be the affected element itself and the second and last parameter will be the new value of the <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> property (not computed) which should be &quot;none&quot;.</p></td>
10488 </tr>
10489
10490
10491 </tbody>
10492</table>
10493
10494
10495
10496
10497<dl class="details">
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
10528 <dd class="tag-source">
10529 <ul class="dummy">
10530 <li>
10531 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
10532 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1185">line 1185</a>
10533 </li>
10534 </ul>
10535 </dd>
10536
10537
10538
10539
10540
10541
10542
10543</dl>
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557 <h5>Returns:</h5>
10558
10559
10560<div class="param-desc">
10561 <p>Returns the given element again.</p>
10562</div>
10563
10564
10565
10566<dl>
10567 <dt>
10568 Type
10569 </dt>
10570 <dd>
10571
10572<span class="param-type">Node</span>
10573
10574
10575
10576 </dd>
10577</dl>
10578
10579
10580
10581
10582
10583</dd>
10584
10585
10586
10587<hr>
10588<dt>
10589 <h4 class="name" id=".hideById"><span class="type-signature">&lt;static> </span>hideById<span class="signature">(elementId [, checkValues] [, computed] [, onHide])</span><span class="type-signature"> &rarr; {Node|null}</span></h4>
10590
10591
10592</dt>
10593<dd>
10594
10595
10596 <div class="description">
10597 <p>Hides a given element by changing its <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> property to &quot;none&quot; and its <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/visibility">visibility</a> to &quot;hidden&quot; (by its identifier).</p>
10598 </div>
10599
10600
10601
10602
10603
10604
10605
10606
10607 <h5>Parameters:</h5>
10608
10609
10610<table class="params table table-striped">
10611 <thead>
10612 <tr>
10613
10614 <th style="width:12%; min-width:110px;">Name</th>
10615
10616
10617 <th style="width:12%; min-width:110px;">Type</th>
10618
10619
10620 <th style="width:12%; min-width:110px;">Argument</th>
10621
10622
10623
10624 <th style="width:12%; min-width:110px;">Default</th>
10625
10626
10627 <th class="last" style="min-width:310px;">Description</th>
10628 </tr>
10629 </thead>
10630
10631 <tbody>
10632
10633
10634 <tr>
10635
10636 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>elementId</code></td>
10637
10638
10639 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10640
10641
10642<span class="param-type">string</span>
10643
10644
10645
10646
10647 </td>
10648
10649
10650 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10651
10652
10653
10654
10655
10656 </td>
10657
10658
10659
10660 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10661
10662 </td>
10663
10664
10665 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element that we want to hide.</p></td>
10666 </tr>
10667
10668
10669
10670 <tr>
10671
10672 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>checkValues</code></td>
10673
10674
10675 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10676
10677
10678<span class="param-type">boolean</span>
10679
10680
10681
10682
10683 </td>
10684
10685
10686 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10687
10688 &lt;optional><br>
10689
10690
10691
10692
10693
10694 </td>
10695
10696
10697
10698 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10699
10700 false
10701
10702 </td>
10703
10704
10705 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will only perform the change if either the current <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/visibility">visibility</a> property is not &quot;hidden&quot; or the current <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> property is not &quot;none&quot;.</p></td>
10706 </tr>
10707
10708
10709
10710 <tr>
10711
10712 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
10713
10714
10715 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10716
10717
10718<span class="param-type">boolean</span>
10719
10720
10721
10722
10723 </td>
10724
10725
10726 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10727
10728 &lt;optional><br>
10729
10730
10731
10732
10733
10734 </td>
10735
10736
10737
10738 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10739
10740 false
10741
10742 </td>
10743
10744
10745 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>This parameter will be used when it calls <a href="CB_Elements.html#.getStyle"><code>CB_Elements.getStyle</code></a> internally.</p></td>
10746 </tr>
10747
10748
10749
10750 <tr>
10751
10752 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onHide</code></td>
10753
10754
10755 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10756
10757
10758<span class="param-type">function</span>
10759
10760
10761
10762
10763 </td>
10764
10765
10766 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10767
10768 &lt;optional><br>
10769
10770
10771
10772
10773
10774 </td>
10775
10776
10777
10778 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10779
10780 </td>
10781
10782
10783 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Callback function that will be called if the element has been hidden, after doing it (this will happens always if &quot;checkValues&quot; is false). The first parameter passed will be the affected element itself and the second and last parameter will be the new value of the <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> property (not computed) which should be &quot;none&quot;.</p></td>
10784 </tr>
10785
10786
10787 </tbody>
10788</table>
10789
10790
10791
10792
10793<dl class="details">
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
10824 <dd class="tag-source">
10825 <ul class="dummy">
10826 <li>
10827 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
10828 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1210">line 1210</a>
10829 </li>
10830 </ul>
10831 </dd>
10832
10833
10834
10835
10836
10837
10838
10839</dl>
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853 <h5>Returns:</h5>
10854
10855
10856<div class="param-desc">
10857 <p>Returns the affected element (if any) or null otherwise.</p>
10858</div>
10859
10860
10861
10862<dl>
10863 <dt>
10864 Type
10865 </dt>
10866 <dd>
10867
10868<span class="param-type">Node</span>
10869|
10870
10871<span class="param-type">null</span>
10872
10873
10874
10875 </dd>
10876</dl>
10877
10878
10879
10880
10881
10882</dd>
10883
10884
10885
10886<hr>
10887<dt>
10888 <h4 class="name" id=".id"><span class="type-signature">&lt;static> </span>id<span class="signature">(id [, useCache])</span><span class="type-signature"> &rarr; {Node|Object|null}</span></h4>
10889
10890
10891</dt>
10892<dd>
10893
10894
10895 <div class="description">
10896 <p>Returns an element by its ID.</p>
10897 </div>
10898
10899
10900
10901
10902
10903
10904
10905
10906 <h5>Parameters:</h5>
10907
10908
10909<table class="params table table-striped">
10910 <thead>
10911 <tr>
10912
10913 <th style="width:12%; min-width:110px;">Name</th>
10914
10915
10916 <th style="width:12%; min-width:110px;">Type</th>
10917
10918
10919 <th style="width:12%; min-width:110px;">Argument</th>
10920
10921
10922
10923 <th style="width:12%; min-width:110px;">Default</th>
10924
10925
10926 <th class="last" style="min-width:310px;">Description</th>
10927 </tr>
10928 </thead>
10929
10930 <tbody>
10931
10932
10933 <tr>
10934
10935 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>id</code></td>
10936
10937
10938 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10939
10940
10941<span class="param-type">string</span>
10942
10943
10944
10945
10946 </td>
10947
10948
10949 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10950
10951
10952
10953
10954
10955 </td>
10956
10957
10958
10959 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10960
10961 </td>
10962
10963
10964 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element that we want to find.</p></td>
10965 </tr>
10966
10967
10968
10969 <tr>
10970
10971 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>useCache</code></td>
10972
10973
10974 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10975
10976
10977<span class="param-type">boolean</span>
10978
10979
10980
10981
10982 </td>
10983
10984
10985 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10986
10987 &lt;optional><br>
10988
10989
10990
10991
10992
10993 </td>
10994
10995
10996
10997 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
10998
10999 <a href="CB_Configuration.CrossBase.html#.CB_Elements_id_USE_CACHE"><code>CB_Configuration.CrossBase.CB_Elements_id_USE_CACHE</code></a>
11000
11001 </td>
11002
11003
11004 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Defines whether to try to get the result from an internal cache (it will exist if we previously called the function with the same parameters) or not. The internal cache will be updated when this parameter is set to false or it will be created automatically when it did not exist before.</p></td>
11005 </tr>
11006
11007
11008 </tbody>
11009</table>
11010
11011
11012
11013
11014<dl class="details">
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
11045 <dd class="tag-source">
11046 <ul class="dummy">
11047 <li>
11048 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
11049 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-543">line 543</a>
11050 </li>
11051 </ul>
11052 </dd>
11053
11054
11055
11056
11057
11058
11059
11060</dl>
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074 <h5>Returns:</h5>
11075
11076
11077<div class="param-desc">
11078 <p>Returns the elements (Node or object, depending on the web client). It will return null when not found.</p>
11079</div>
11080
11081
11082
11083<dl>
11084 <dt>
11085 Type
11086 </dt>
11087 <dd>
11088
11089<span class="param-type">Node</span>
11090|
11091
11092<span class="param-type">Object</span>
11093|
11094
11095<span class="param-type">null</span>
11096
11097
11098
11099 </dd>
11100</dl>
11101
11102
11103
11104
11105
11106</dd>
11107
11108
11109
11110<hr>
11111<dt>
11112 <h4 class="name" id=".idCacheClear"><span class="type-signature">&lt;static> </span>idCacheClear<span class="signature">( [id])</span><span class="type-signature"> &rarr; {Object}</span></h4>
11113
11114
11115</dt>
11116<dd>
11117
11118
11119 <div class="description">
11120 <p>Clears the internal cache used by <a href="CB_Elements.html#.id"><code>CB_Elements.id</code></a> and others. If no parameter is given, whole internal cache will be cleared.</p>
11121 </div>
11122
11123
11124
11125
11126
11127
11128
11129
11130 <h5>Parameters:</h5>
11131
11132
11133<table class="params table table-striped">
11134 <thead>
11135 <tr>
11136
11137 <th style="width:12%; min-width:110px;">Name</th>
11138
11139
11140 <th style="width:12%; min-width:110px;">Type</th>
11141
11142
11143 <th style="width:12%; min-width:110px;">Argument</th>
11144
11145
11146
11147
11148 <th class="last" style="min-width:310px;">Description</th>
11149 </tr>
11150 </thead>
11151
11152 <tbody>
11153
11154
11155 <tr>
11156
11157 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>id</code></td>
11158
11159
11160 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11161
11162
11163<span class="param-type">string</span>
11164
11165
11166
11167
11168 </td>
11169
11170
11171 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11172
11173 &lt;optional><br>
11174
11175
11176
11177
11178
11179 </td>
11180
11181
11182
11183
11184 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element whose internal cache we want to clear. If not provided, it will clear the whole internal cache.</p></td>
11185 </tr>
11186
11187
11188 </tbody>
11189</table>
11190
11191
11192
11193
11194<dl class="details">
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
11225 <dd class="tag-source">
11226 <ul class="dummy">
11227 <li>
11228 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
11229 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-601">line 601</a>
11230 </li>
11231 </ul>
11232 </dd>
11233
11234
11235
11236
11237
11238
11239
11240</dl>
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254 <h5>Returns:</h5>
11255
11256
11257<div class="param-desc">
11258 <p>Returns the current internal cache after cleaning it (if it is has been possible), which is an associative array of one dimension (JavaScript object) whose first and unique index belongs to the identifier and the value belongs to each element.</p>
11259</div>
11260
11261
11262
11263<dl>
11264 <dt>
11265 Type
11266 </dt>
11267 <dd>
11268
11269<span class="param-type">Object</span>
11270
11271
11272
11273 </dd>
11274</dl>
11275
11276
11277
11278
11279
11280</dd>
11281
11282
11283
11284<hr>
11285<dt>
11286 <h4 class="name" id=".idCacheUpdate"><span class="type-signature">&lt;static> </span>idCacheUpdate<span class="signature">(id)</span><span class="type-signature"> &rarr; {node|Object|null}</span></h4>
11287
11288
11289</dt>
11290<dd>
11291
11292
11293 <div class="description">
11294 <p>Returns an element by its ID, updating (or creating) the internal cache. Calls the <a href="CB_Elements.html#.id"><code>CB_Elements.id</code></a> function internally, with the &quot;useCache&quot; parameter set to false.</p>
11295 </div>
11296
11297
11298
11299
11300
11301
11302
11303
11304 <h5>Parameters:</h5>
11305
11306
11307<table class="params table table-striped">
11308 <thead>
11309 <tr>
11310
11311 <th style="width:12%; min-width:110px;">Name</th>
11312
11313
11314 <th style="width:12%; min-width:110px;">Type</th>
11315
11316
11317
11318
11319
11320 <th class="last" style="min-width:310px;">Description</th>
11321 </tr>
11322 </thead>
11323
11324 <tbody>
11325
11326
11327 <tr>
11328
11329 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>id</code></td>
11330
11331
11332 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11333
11334
11335<span class="param-type">string</span>
11336
11337
11338
11339
11340 </td>
11341
11342
11343
11344
11345
11346 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element that we want to find.</p></td>
11347 </tr>
11348
11349
11350 </tbody>
11351</table>
11352
11353
11354
11355
11356<dl class="details">
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
11387 <dd class="tag-source">
11388 <ul class="dummy">
11389 <li>
11390 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
11391 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-589">line 589</a>
11392 </li>
11393 </ul>
11394 </dd>
11395
11396
11397
11398
11399
11400
11401
11402</dl>
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416 <h5>Returns:</h5>
11417
11418
11419<div class="param-desc">
11420 <p>Returns the elements (Node or object, depending on the web client). It will return null when not found.</p>
11421</div>
11422
11423
11424
11425<dl>
11426 <dt>
11427 Type
11428 </dt>
11429 <dd>
11430
11431<span class="param-type">node</span>
11432|
11433
11434<span class="param-type">Object</span>
11435|
11436
11437<span class="param-type">null</span>
11438
11439
11440
11441 </dd>
11442</dl>
11443
11444
11445
11446
11447
11448</dd>
11449
11450
11451
11452<hr>
11453<dt>
11454 <h4 class="name" id=".idRemove"><span class="type-signature">&lt;static> </span>idRemove<span class="signature">(id [, useCache])</span><span class="type-signature"></span></h4>
11455
11456
11457</dt>
11458<dd>
11459
11460
11461 <div class="description">
11462 <p>Removes an element by its ID.</p>
11463 </div>
11464
11465
11466
11467
11468
11469
11470
11471
11472 <h5>Parameters:</h5>
11473
11474
11475<table class="params table table-striped">
11476 <thead>
11477 <tr>
11478
11479 <th style="width:12%; min-width:110px;">Name</th>
11480
11481
11482 <th style="width:12%; min-width:110px;">Type</th>
11483
11484
11485 <th style="width:12%; min-width:110px;">Argument</th>
11486
11487
11488
11489 <th style="width:12%; min-width:110px;">Default</th>
11490
11491
11492 <th class="last" style="min-width:310px;">Description</th>
11493 </tr>
11494 </thead>
11495
11496 <tbody>
11497
11498
11499 <tr>
11500
11501 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>id</code></td>
11502
11503
11504 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11505
11506
11507<span class="param-type">string</span>
11508
11509
11510
11511
11512 </td>
11513
11514
11515 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11516
11517
11518
11519
11520
11521 </td>
11522
11523
11524
11525 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11526
11527 </td>
11528
11529
11530 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element that we want to delete.</p></td>
11531 </tr>
11532
11533
11534
11535 <tr>
11536
11537 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>useCache</code></td>
11538
11539
11540 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11541
11542
11543<span class="param-type">boolean</span>
11544
11545
11546
11547
11548 </td>
11549
11550
11551 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11552
11553 &lt;optional><br>
11554
11555
11556
11557
11558
11559 </td>
11560
11561
11562
11563 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11564
11565 <a href="CB_Configuration.CrossBase.html#.CB_Elements_id_USE_CACHE"><code>CB_Configuration.CrossBase.CB_Elements_id_USE_CACHE</code></a>
11566
11567 </td>
11568
11569
11570 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Defines whether to try to get the result from an internal cache (it will exist if we previously called the function with the same parameters) or not. The internal cache will be updated when this parameter is set to false or it will be created automatically when it did not exist before.</p></td>
11571 </tr>
11572
11573
11574 </tbody>
11575</table>
11576
11577
11578
11579
11580<dl class="details">
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
11611 <dd class="tag-source">
11612 <ul class="dummy">
11613 <li>
11614 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
11615 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-621">line 621</a>
11616 </li>
11617 </ul>
11618 </dd>
11619
11620
11621
11622
11623
11624
11625
11626</dl>
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642</dd>
11643
11644
11645
11646<hr>
11647<dt>
11648 <h4 class="name" id=".insertContent"><span class="type-signature">&lt;static> </span>insertContent<span class="signature">(container, content [, displayValue] [, checkValues] [, computed] [, onContentWritten] [, onShow] [, append] [, appendAtBeginning])</span><span class="type-signature"> &rarr; {Node}</span></h4>
11649
11650
11651</dt>
11652<dd>
11653
11654
11655 <div class="description">
11656 <p>Inserts the desired content inside a given element (using <a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML">innerHTML</a>).</p>
11657 </div>
11658
11659
11660
11661
11662
11663
11664
11665
11666 <h5>Parameters:</h5>
11667
11668
11669<table class="params table table-striped">
11670 <thead>
11671 <tr>
11672
11673 <th style="width:12%; min-width:110px;">Name</th>
11674
11675
11676 <th style="width:12%; min-width:110px;">Type</th>
11677
11678
11679 <th style="width:12%; min-width:110px;">Argument</th>
11680
11681
11682
11683 <th style="width:12%; min-width:110px;">Default</th>
11684
11685
11686 <th class="last" style="min-width:310px;">Description</th>
11687 </tr>
11688 </thead>
11689
11690 <tbody>
11691
11692
11693 <tr>
11694
11695 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>container</code></td>
11696
11697
11698 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11699
11700
11701<span class="param-type">Node</span>
11702
11703
11704
11705
11706 </td>
11707
11708
11709 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11710
11711
11712
11713
11714
11715 </td>
11716
11717
11718
11719 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11720
11721 </td>
11722
11723
11724 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The element whose content we want to modify.</p></td>
11725 </tr>
11726
11727
11728
11729 <tr>
11730
11731 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>content</code></td>
11732
11733
11734 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11735
11736
11737<span class="param-type">string</span>
11738
11739
11740
11741
11742 </td>
11743
11744
11745 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11746
11747
11748
11749
11750
11751 </td>
11752
11753
11754
11755 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11756
11757 </td>
11758
11759
11760 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The content that we want to add.</p></td>
11761 </tr>
11762
11763
11764
11765 <tr>
11766
11767 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>displayValue</code></td>
11768
11769
11770 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11771
11772
11773<span class="param-type">string</span>
11774
11775
11776
11777
11778 </td>
11779
11780
11781 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11782
11783 &lt;optional><br>
11784
11785
11786
11787
11788
11789 </td>
11790
11791
11792
11793 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11794
11795 </td>
11796
11797
11798 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If provided, it will call <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> internally after inserting the content to set the given <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> property to the element.</p></td>
11799 </tr>
11800
11801
11802
11803 <tr>
11804
11805 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>checkValues</code></td>
11806
11807
11808 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11809
11810
11811<span class="param-type">boolean</span>
11812
11813
11814
11815
11816 </td>
11817
11818
11819 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11820
11821 &lt;optional><br>
11822
11823
11824
11825
11826
11827 </td>
11828
11829
11830
11831 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11832
11833 false
11834
11835 </td>
11836
11837
11838 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will only change the content if the current one is different from the given one and it will pass the same parameter to <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> if it is called internally (when &quot;displayValue&quot; is given).</p></td>
11839 </tr>
11840
11841
11842
11843 <tr>
11844
11845 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
11846
11847
11848 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11849
11850
11851<span class="param-type">boolean</span>
11852
11853
11854
11855
11856 </td>
11857
11858
11859 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11860
11861 &lt;optional><br>
11862
11863
11864
11865
11866
11867 </td>
11868
11869
11870
11871 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11872
11873 false
11874
11875 </td>
11876
11877
11878 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If &quot;displayValue&quot; is given, it will pass this parameter to <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> if it is called internally (when &quot;displayValue&quot; is given).</p></td>
11879 </tr>
11880
11881
11882
11883 <tr>
11884
11885 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onContentWritten</code></td>
11886
11887
11888 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11889
11890
11891<span class="param-type">function</span>
11892
11893
11894
11895
11896 </td>
11897
11898
11899 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11900
11901 &lt;optional><br>
11902
11903
11904
11905
11906
11907 </td>
11908
11909
11910
11911 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11912
11913 </td>
11914
11915
11916 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Callback function that will be called if the content has been written, after doing it (this will happens always if &quot;checkValues&quot; is false). The unique parameter passed will be the container itself.</p></td>
11917 </tr>
11918
11919
11920
11921 <tr>
11922
11923 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onShow</code></td>
11924
11925
11926 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11927
11928
11929<span class="param-type">function</span>
11930
11931
11932
11933
11934 </td>
11935
11936
11937 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11938
11939 &lt;optional><br>
11940
11941
11942
11943
11944
11945 </td>
11946
11947
11948
11949 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11950
11951 </td>
11952
11953
11954 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If &quot;displayValue&quot; is given, it will pass this parameter to <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> when it is called internally.</p></td>
11955 </tr>
11956
11957
11958
11959 <tr>
11960
11961 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>append</code></td>
11962
11963
11964 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11965
11966
11967<span class="param-type">boolean</span>
11968
11969
11970
11971
11972 </td>
11973
11974
11975 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11976
11977 &lt;optional><br>
11978
11979
11980
11981
11982
11983 </td>
11984
11985
11986
11987 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
11988
11989 false
11990
11991 </td>
11992
11993
11994 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If set to true, it will append the given content to the existing one instead of overwritten it. By default, it appends it at the end unless that the &quot;appendAtBeginning&quot; is set to true.</p></td>
11995 </tr>
11996
11997
11998
11999 <tr>
12000
12001 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>appendAtBeginning</code></td>
12002
12003
12004 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12005
12006
12007<span class="param-type">boolean</span>
12008
12009
12010
12011
12012 </td>
12013
12014
12015 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12016
12017 &lt;optional><br>
12018
12019
12020
12021
12022
12023 </td>
12024
12025
12026
12027 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12028
12029 false
12030
12031 </td>
12032
12033
12034 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If set to true, it will append the given content to the existing one instead of overwritten it.</p></td>
12035 </tr>
12036
12037
12038 </tbody>
12039</table>
12040
12041
12042
12043
12044<dl class="details">
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
12075 <dd class="tag-source">
12076 <ul class="dummy">
12077 <li>
12078 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
12079 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-801">line 801</a>
12080 </li>
12081 </ul>
12082 </dd>
12083
12084
12085
12086
12087
12088
12089
12090</dl>
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104 <h5>Returns:</h5>
12105
12106
12107<div class="param-desc">
12108 <p>Returns the given container again.</p>
12109</div>
12110
12111
12112
12113<dl>
12114 <dt>
12115 Type
12116 </dt>
12117 <dd>
12118
12119<span class="param-type">Node</span>
12120
12121
12122
12123 </dd>
12124</dl>
12125
12126
12127
12128
12129
12130</dd>
12131
12132
12133
12134<hr>
12135<dt>
12136 <h4 class="name" id=".insertContentById"><span class="type-signature">&lt;static> </span>insertContentById<span class="signature">(containerId, content [, displayValue] [, checkValues] [, computed] [, onContentWritten] [, onShow] [, append] [, appendAtBeginning])</span><span class="type-signature"> &rarr; {Node|null}</span></h4>
12137
12138
12139</dt>
12140<dd>
12141
12142
12143 <div class="description">
12144 <p>Inserts the desired content inside a given element (using <a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML">innerHTML</a>), by its identifier.</p>
12145 </div>
12146
12147
12148
12149
12150
12151
12152
12153
12154 <h5>Parameters:</h5>
12155
12156
12157<table class="params table table-striped">
12158 <thead>
12159 <tr>
12160
12161 <th style="width:12%; min-width:110px;">Name</th>
12162
12163
12164 <th style="width:12%; min-width:110px;">Type</th>
12165
12166
12167 <th style="width:12%; min-width:110px;">Argument</th>
12168
12169
12170
12171 <th style="width:12%; min-width:110px;">Default</th>
12172
12173
12174 <th class="last" style="min-width:310px;">Description</th>
12175 </tr>
12176 </thead>
12177
12178 <tbody>
12179
12180
12181 <tr>
12182
12183 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>containerId</code></td>
12184
12185
12186 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12187
12188
12189<span class="param-type">string</span>
12190
12191
12192
12193
12194 </td>
12195
12196
12197 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12198
12199
12200
12201
12202
12203 </td>
12204
12205
12206
12207 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12208
12209 </td>
12210
12211
12212 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element whose content we want to modify.</p></td>
12213 </tr>
12214
12215
12216
12217 <tr>
12218
12219 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>content</code></td>
12220
12221
12222 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12223
12224
12225<span class="param-type">string</span>
12226
12227
12228
12229
12230 </td>
12231
12232
12233 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12234
12235
12236
12237
12238
12239 </td>
12240
12241
12242
12243 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12244
12245 </td>
12246
12247
12248 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The content that we want to add.</p></td>
12249 </tr>
12250
12251
12252
12253 <tr>
12254
12255 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>displayValue</code></td>
12256
12257
12258 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12259
12260
12261<span class="param-type">string</span>
12262
12263
12264
12265
12266 </td>
12267
12268
12269 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12270
12271 &lt;optional><br>
12272
12273
12274
12275
12276
12277 </td>
12278
12279
12280
12281 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12282
12283 </td>
12284
12285
12286 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If provided, it will call <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> internally after inserting the content to set the given <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> property to the element.</p></td>
12287 </tr>
12288
12289
12290
12291 <tr>
12292
12293 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>checkValues</code></td>
12294
12295
12296 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12297
12298
12299<span class="param-type">boolean</span>
12300
12301
12302
12303
12304 </td>
12305
12306
12307 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12308
12309 &lt;optional><br>
12310
12311
12312
12313
12314
12315 </td>
12316
12317
12318
12319 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12320
12321 false
12322
12323 </td>
12324
12325
12326 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will only change the content if the current one is different from the given one and it will pass the same parameter to <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> if it is called internally (when &quot;displayValue&quot; is given).</p></td>
12327 </tr>
12328
12329
12330
12331 <tr>
12332
12333 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
12334
12335
12336 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12337
12338
12339<span class="param-type">boolean</span>
12340
12341
12342
12343
12344 </td>
12345
12346
12347 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12348
12349 &lt;optional><br>
12350
12351
12352
12353
12354
12355 </td>
12356
12357
12358
12359 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12360
12361 false
12362
12363 </td>
12364
12365
12366 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If &quot;displayValue&quot; is given, it will pass this parameter to <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> if it is called internally (when &quot;displayValue&quot; is given).</p></td>
12367 </tr>
12368
12369
12370
12371 <tr>
12372
12373 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onContentWritten</code></td>
12374
12375
12376 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12377
12378
12379<span class="param-type">function</span>
12380
12381
12382
12383
12384 </td>
12385
12386
12387 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12388
12389 &lt;optional><br>
12390
12391
12392
12393
12394
12395 </td>
12396
12397
12398
12399 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12400
12401 </td>
12402
12403
12404 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Callback function that will be called if the content has been written, after doing it (this will happens always if &quot;checkValues&quot; is false). The unique parameter passed will be the affected container itself.</p></td>
12405 </tr>
12406
12407
12408
12409 <tr>
12410
12411 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onShow</code></td>
12412
12413
12414 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12415
12416
12417<span class="param-type">function</span>
12418
12419
12420
12421
12422 </td>
12423
12424
12425 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12426
12427 &lt;optional><br>
12428
12429
12430
12431
12432
12433 </td>
12434
12435
12436
12437 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12438
12439 </td>
12440
12441
12442 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If &quot;displayValue&quot; is given, it will pass this parameter to <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> when it is called internally.</p></td>
12443 </tr>
12444
12445
12446
12447 <tr>
12448
12449 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>append</code></td>
12450
12451
12452 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12453
12454
12455<span class="param-type">boolean</span>
12456
12457
12458
12459
12460 </td>
12461
12462
12463 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12464
12465 &lt;optional><br>
12466
12467
12468
12469
12470
12471 </td>
12472
12473
12474
12475 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12476
12477 false
12478
12479 </td>
12480
12481
12482 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If set to true, it will append the given content to the existing one instead of overwritten it. By default, it appends it at the end unless that the &quot;appendAtBeginning&quot; is set to true.</p></td>
12483 </tr>
12484
12485
12486
12487 <tr>
12488
12489 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>appendAtBeginning</code></td>
12490
12491
12492 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12493
12494
12495<span class="param-type">boolean</span>
12496
12497
12498
12499
12500 </td>
12501
12502
12503 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12504
12505 &lt;optional><br>
12506
12507
12508
12509
12510
12511 </td>
12512
12513
12514
12515 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12516
12517 false
12518
12519 </td>
12520
12521
12522 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If set to true, it will append the given content to the existing one instead of overwritten it.</p></td>
12523 </tr>
12524
12525
12526 </tbody>
12527</table>
12528
12529
12530
12531
12532<dl class="details">
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
12563 <dd class="tag-source">
12564 <ul class="dummy">
12565 <li>
12566 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
12567 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-871">line 871</a>
12568 </li>
12569 </ul>
12570 </dd>
12571
12572
12573
12574
12575
12576
12577
12578</dl>
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592 <h5>Returns:</h5>
12593
12594
12595<div class="param-desc">
12596 <p>Returns the affected container (if any) or null otherwise.</p>
12597</div>
12598
12599
12600
12601<dl>
12602 <dt>
12603 Type
12604 </dt>
12605 <dd>
12606
12607<span class="param-type">Node</span>
12608|
12609
12610<span class="param-type">null</span>
12611
12612
12613
12614 </dd>
12615</dl>
12616
12617
12618
12619
12620
12621</dd>
12622
12623
12624
12625<hr>
12626<dt>
12627 <h4 class="name" id=".preventSelection"><span class="type-signature">&lt;static> </span>preventSelection<span class="signature">(element [, avoidSelection])</span><span class="type-signature"> &rarr; {Node|null}</span></h4>
12628
12629
12630</dt>
12631<dd>
12632
12633
12634 <div class="description">
12635 <p>Prevents or allows the possibility of selecting the content of a given element (makes it unselectable).</p>
12636 </div>
12637
12638
12639
12640
12641
12642
12643
12644
12645 <h5>Parameters:</h5>
12646
12647
12648<table class="params table table-striped">
12649 <thead>
12650 <tr>
12651
12652 <th style="width:12%; min-width:110px;">Name</th>
12653
12654
12655 <th style="width:12%; min-width:110px;">Type</th>
12656
12657
12658 <th style="width:12%; min-width:110px;">Argument</th>
12659
12660
12661
12662 <th style="width:12%; min-width:110px;">Default</th>
12663
12664
12665 <th class="last" style="min-width:310px;">Description</th>
12666 </tr>
12667 </thead>
12668
12669 <tbody>
12670
12671
12672 <tr>
12673
12674 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>element</code></td>
12675
12676
12677 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12678
12679
12680<span class="param-type">Node</span>
12681
12682
12683
12684
12685 </td>
12686
12687
12688 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12689
12690
12691
12692
12693
12694 </td>
12695
12696
12697
12698 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12699
12700 </td>
12701
12702
12703 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The element which we want to affect.</p></td>
12704 </tr>
12705
12706
12707
12708 <tr>
12709
12710 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>avoidSelection</code></td>
12711
12712
12713 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12714
12715
12716<span class="param-type">boolean</span>
12717
12718
12719
12720
12721 </td>
12722
12723
12724 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12725
12726 &lt;optional><br>
12727
12728
12729
12730
12731
12732 </td>
12733
12734
12735
12736 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12737
12738 true
12739
12740 </td>
12741
12742
12743 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If set to false, it will allow selecting the content. Otherwise, it will prevent it to be selected.</p></td>
12744 </tr>
12745
12746
12747 </tbody>
12748</table>
12749
12750
12751
12752
12753<dl class="details">
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
12784 <dd class="tag-source">
12785 <ul class="dummy">
12786 <li>
12787 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
12788 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1779">line 1779</a>
12789 </li>
12790 </ul>
12791 </dd>
12792
12793
12794
12795
12796
12797
12798
12799</dl>
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813 <h5>Returns:</h5>
12814
12815
12816<div class="param-desc">
12817 <p>Returns the given element again or null.</p>
12818</div>
12819
12820
12821
12822<dl>
12823 <dt>
12824 Type
12825 </dt>
12826 <dd>
12827
12828<span class="param-type">Node</span>
12829|
12830
12831<span class="param-type">null</span>
12832
12833
12834
12835 </dd>
12836</dl>
12837
12838
12839
12840
12841
12842</dd>
12843
12844
12845
12846<hr>
12847<dt>
12848 <h4 class="name" id=".preventSelectionById"><span class="type-signature">&lt;static> </span>preventSelectionById<span class="signature">(elementId [, avoidSelection])</span><span class="type-signature"> &rarr; {Node|null}</span></h4>
12849
12850
12851</dt>
12852<dd>
12853
12854
12855 <div class="description">
12856 <p>Prevents or allows the possibility of selecting the content of a given element (makes it unselectable), by its ID.</p>
12857 </div>
12858
12859
12860
12861
12862
12863
12864
12865
12866 <h5>Parameters:</h5>
12867
12868
12869<table class="params table table-striped">
12870 <thead>
12871 <tr>
12872
12873 <th style="width:12%; min-width:110px;">Name</th>
12874
12875
12876 <th style="width:12%; min-width:110px;">Type</th>
12877
12878
12879 <th style="width:12%; min-width:110px;">Argument</th>
12880
12881
12882
12883 <th style="width:12%; min-width:110px;">Default</th>
12884
12885
12886 <th class="last" style="min-width:310px;">Description</th>
12887 </tr>
12888 </thead>
12889
12890 <tbody>
12891
12892
12893 <tr>
12894
12895 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>elementId</code></td>
12896
12897
12898 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12899
12900
12901<span class="param-type">string</span>
12902
12903
12904
12905
12906 </td>
12907
12908
12909 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12910
12911
12912
12913
12914
12915 </td>
12916
12917
12918
12919 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12920
12921 </td>
12922
12923
12924 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element which we want to affect.</p></td>
12925 </tr>
12926
12927
12928
12929 <tr>
12930
12931 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>avoidSelection</code></td>
12932
12933
12934 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12935
12936
12937<span class="param-type">boolean</span>
12938
12939
12940
12941
12942 </td>
12943
12944
12945 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12946
12947 &lt;optional><br>
12948
12949
12950
12951
12952
12953 </td>
12954
12955
12956
12957 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
12958
12959 true
12960
12961 </td>
12962
12963
12964 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If set to false, it will allow selecting the content. Otherwise, it will prevent it to be selected.</p></td>
12965 </tr>
12966
12967
12968 </tbody>
12969</table>
12970
12971
12972
12973
12974<dl class="details">
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
13005 <dd class="tag-source">
13006 <ul class="dummy">
13007 <li>
13008 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
13009 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1826">line 1826</a>
13010 </li>
13011 </ul>
13012 </dd>
13013
13014
13015
13016
13017
13018
13019
13020</dl>
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034 <h5>Returns:</h5>
13035
13036
13037<div class="param-desc">
13038 <p>Returns the affected element (if any) or null otherwise.</p>
13039</div>
13040
13041
13042
13043<dl>
13044 <dt>
13045 Type
13046 </dt>
13047 <dd>
13048
13049<span class="param-type">Node</span>
13050|
13051
13052<span class="param-type">null</span>
13053
13054
13055
13056 </dd>
13057</dl>
13058
13059
13060
13061
13062
13063</dd>
13064
13065
13066
13067<hr>
13068<dt>
13069 <h4 class="name" id=".remove"><span class="type-signature">&lt;static> </span>remove<span class="signature">(element)</span><span class="type-signature"></span></h4>
13070
13071
13072</dt>
13073<dd>
13074
13075
13076 <div class="description">
13077 <p>Removes an element given.</p>
13078 </div>
13079
13080
13081
13082
13083
13084
13085
13086
13087 <h5>Parameters:</h5>
13088
13089
13090<table class="params table table-striped">
13091 <thead>
13092 <tr>
13093
13094 <th style="width:12%; min-width:110px;">Name</th>
13095
13096
13097 <th style="width:12%; min-width:110px;">Type</th>
13098
13099
13100
13101
13102
13103 <th class="last" style="min-width:310px;">Description</th>
13104 </tr>
13105 </thead>
13106
13107 <tbody>
13108
13109
13110 <tr>
13111
13112 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>element</code></td>
13113
13114
13115 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
13116
13117
13118<span class="param-type">Node</span>
13119
13120
13121
13122
13123 </td>
13124
13125
13126
13127
13128
13129 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The element that we want to delete.</p></td>
13130 </tr>
13131
13132
13133 </tbody>
13134</table>
13135
13136
13137
13138
13139<dl class="details">
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
13170 <dd class="tag-source">
13171 <ul class="dummy">
13172 <li>
13173 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
13174 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-639">line 639</a>
13175 </li>
13176 </ul>
13177 </dd>
13178
13179
13180
13181
13182
13183
13184
13185</dl>
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201</dd>
13202
13203
13204
13205<hr>
13206<dt>
13207 <h4 class="name" id=".removeByClasses"><span class="type-signature">&lt;static> </span>removeByClasses<span class="signature">()</span><span class="type-signature"></span></h4>
13208
13209
13210</dt>
13211<dd>
13212
13213
13214 <div class="description">
13215 <p>Alias for <a href="CB_Elements.html#.classesRemove"><code>CB_Elements.classesRemove</code></a>.</p>
13216 </div>
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227<dl class="details">
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
13258 <dd class="tag-source">
13259 <ul class="dummy">
13260 <li>
13261 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
13262 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-484">line 484</a>
13263 </li>
13264 </ul>
13265 </dd>
13266
13267
13268
13269
13270
13271 <dt class="tag-see method-doc-label method-doc-details-label">See:</dt>
13272 <dd class="tag-see">
13273 <ul>
13274 <li><a href="CB_Elements.html#.classesRemove"><code>CB_Elements.classesRemove</code></a></li>
13275 </ul>
13276 </dd>
13277
13278
13279
13280</dl>
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296</dd>
13297
13298
13299
13300<hr>
13301<dt>
13302 <h4 class="name" id=".removeById"><span class="type-signature">&lt;static> </span>removeById<span class="signature">()</span><span class="type-signature"></span></h4>
13303
13304
13305</dt>
13306<dd>
13307
13308
13309 <div class="description">
13310 <p>Alias for <a href="CB_Elements.html#.idRemove"><code>CB_Elements.idRemove</code></a>.</p>
13311 </div>
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322<dl class="details">
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
13353 <dd class="tag-source">
13354 <ul class="dummy">
13355 <li>
13356 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
13357 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-610">line 610</a>
13358 </li>
13359 </ul>
13360 </dd>
13361
13362
13363
13364
13365
13366 <dt class="tag-see method-doc-label method-doc-details-label">See:</dt>
13367 <dd class="tag-see">
13368 <ul>
13369 <li><a href="CB_Elements.html#.idRemove"><code>CB_Elements.idRemove</code></a></li>
13370 </ul>
13371 </dd>
13372
13373
13374
13375</dl>
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391</dd>
13392
13393
13394
13395<hr>
13396<dt>
13397 <h4 class="name" id=".removeByTagName"><span class="type-signature">&lt;static> </span>removeByTagName<span class="signature">()</span><span class="type-signature"></span></h4>
13398
13399
13400</dt>
13401<dd>
13402
13403
13404 <div class="description">
13405 <p>Alias for <a href="CB_Elements.html#.tagRemove"><code>CB_Elements.tagRemove</code></a>.</p>
13406 </div>
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417<dl class="details">
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
13448 <dd class="tag-source">
13449 <ul class="dummy">
13450 <li>
13451 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
13452 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-229">line 229</a>
13453 </li>
13454 </ul>
13455 </dd>
13456
13457
13458
13459
13460
13461 <dt class="tag-see method-doc-label method-doc-details-label">See:</dt>
13462 <dd class="tag-see">
13463 <ul>
13464 <li><a href="CB_Elements.html#.tagRemove"><code>CB_Elements.tagRemove</code></a></li>
13465 </ul>
13466 </dd>
13467
13468
13469
13470</dl>
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486</dd>
13487
13488
13489
13490<hr>
13491<dt>
13492 <h4 class="name" id=".removeClass"><span class="type-signature">&lt;static> </span>removeClass<span class="signature">(element, className [, checkValues] [, onRemoveClass])</span><span class="type-signature"> &rarr; {Node}</span></h4>
13493
13494
13495</dt>
13496<dd>
13497
13498
13499 <div class="description">
13500 <p>Removes a desired class from a given element. The element can contain other classes and they will be kept.</p>
13501 </div>
13502
13503
13504
13505
13506
13507
13508
13509
13510 <h5>Parameters:</h5>
13511
13512
13513<table class="params table table-striped">
13514 <thead>
13515 <tr>
13516
13517 <th style="width:12%; min-width:110px;">Name</th>
13518
13519
13520 <th style="width:12%; min-width:110px;">Type</th>
13521
13522
13523 <th style="width:12%; min-width:110px;">Argument</th>
13524
13525
13526
13527 <th style="width:12%; min-width:110px;">Default</th>
13528
13529
13530 <th class="last" style="min-width:310px;">Description</th>
13531 </tr>
13532 </thead>
13533
13534 <tbody>
13535
13536
13537 <tr>
13538
13539 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>element</code></td>
13540
13541
13542 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
13543
13544
13545<span class="param-type">Node</span>
13546
13547
13548
13549
13550 </td>
13551
13552
13553 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
13554
13555
13556
13557
13558
13559 </td>
13560
13561
13562
13563 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
13564
13565 </td>
13566
13567
13568 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The element whose class we want to remove.</p></td>
13569 </tr>
13570
13571
13572
13573 <tr>
13574
13575 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>className</code></td>
13576
13577
13578 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
13579
13580
13581<span class="param-type">string</span>
13582
13583
13584
13585
13586 </td>
13587
13588
13589 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
13590
13591
13592
13593
13594
13595 </td>
13596
13597
13598
13599 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
13600
13601 </td>
13602
13603
13604 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The class that will be removed if the element is using it.</p></td>
13605 </tr>
13606
13607
13608
13609 <tr>
13610
13611 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>checkValues</code></td>
13612
13613
13614 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
13615
13616
13617<span class="param-type">boolean</span>
13618
13619
13620
13621
13622 </td>
13623
13624
13625 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
13626
13627 &lt;optional><br>
13628
13629
13630
13631
13632
13633 </td>
13634
13635
13636
13637 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
13638
13639 false
13640
13641 </td>
13642
13643
13644 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will only try to perform the action if the given &quot;className&quot; is being used. The result will be the same with either true or false, but depending on the client used it could gain or lose performance.</p></td>
13645 </tr>
13646
13647
13648
13649 <tr>
13650
13651 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onRemoveClass</code></td>
13652
13653
13654 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
13655
13656
13657<span class="param-type">function</span>
13658
13659
13660
13661
13662 </td>
13663
13664
13665 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
13666
13667 &lt;optional><br>
13668
13669
13670
13671
13672
13673 </td>
13674
13675
13676
13677 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
13678
13679 </td>
13680
13681
13682 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Callback function that will be called if the class of the element has been tried to be removed, after doing it (this will happens always if &quot;checkValues&quot; is false). The first and unique parameter passed will be the affected element itself.</p></td>
13683 </tr>
13684
13685
13686 </tbody>
13687</table>
13688
13689
13690
13691
13692<dl class="details">
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
13723 <dd class="tag-source">
13724 <ul class="dummy">
13725 <li>
13726 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
13727 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1279">line 1279</a>
13728 </li>
13729 </ul>
13730 </dd>
13731
13732
13733
13734
13735
13736
13737
13738 <dt class="tag-todo method-doc-label method-doc-details-label">To Do:</dt>
13739 <dd class="tag-todo">
13740 <ul>
13741 <li>Think about allowing to remove more than once class at the same time, regardless of the order given and order set.</li>
13742 </ul>
13743 </dd>
13744
13745</dl>
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759 <h5>Returns:</h5>
13760
13761
13762<div class="param-desc">
13763 <p>Returns the given element again.</p>
13764</div>
13765
13766
13767
13768<dl>
13769 <dt>
13770 Type
13771 </dt>
13772 <dd>
13773
13774<span class="param-type">Node</span>
13775
13776
13777
13778 </dd>
13779</dl>
13780
13781
13782
13783
13784
13785</dd>
13786
13787
13788
13789<hr>
13790<dt>
13791 <h4 class="name" id=".removeClassById"><span class="type-signature">&lt;static> </span>removeClassById<span class="signature">(elementId, className [, checkValues] [, onRemoveClass])</span><span class="type-signature"> &rarr; {Node|null}</span></h4>
13792
13793
13794</dt>
13795<dd>
13796
13797
13798 <div class="description">
13799 <p>Removes a desired class from a given element (by its identifier). The element can contain other classes and they will be kept.</p>
13800 </div>
13801
13802
13803
13804
13805
13806
13807
13808
13809 <h5>Parameters:</h5>
13810
13811
13812<table class="params table table-striped">
13813 <thead>
13814 <tr>
13815
13816 <th style="width:12%; min-width:110px;">Name</th>
13817
13818
13819 <th style="width:12%; min-width:110px;">Type</th>
13820
13821
13822 <th style="width:12%; min-width:110px;">Argument</th>
13823
13824
13825
13826 <th style="width:12%; min-width:110px;">Default</th>
13827
13828
13829 <th class="last" style="min-width:310px;">Description</th>
13830 </tr>
13831 </thead>
13832
13833 <tbody>
13834
13835
13836 <tr>
13837
13838 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>elementId</code></td>
13839
13840
13841 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
13842
13843
13844<span class="param-type">string</span>
13845
13846
13847
13848
13849 </td>
13850
13851
13852 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
13853
13854
13855
13856
13857
13858 </td>
13859
13860
13861
13862 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
13863
13864 </td>
13865
13866
13867 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element whose class we want to remove.</p></td>
13868 </tr>
13869
13870
13871
13872 <tr>
13873
13874 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>className</code></td>
13875
13876
13877 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
13878
13879
13880<span class="param-type">string</span>
13881
13882
13883
13884
13885 </td>
13886
13887
13888 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
13889
13890
13891
13892
13893
13894 </td>
13895
13896
13897
13898 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
13899
13900 </td>
13901
13902
13903 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The class that will be removed if the element is using it.</p></td>
13904 </tr>
13905
13906
13907
13908 <tr>
13909
13910 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>checkValues</code></td>
13911
13912
13913 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
13914
13915
13916<span class="param-type">boolean</span>
13917
13918
13919
13920
13921 </td>
13922
13923
13924 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
13925
13926 &lt;optional><br>
13927
13928
13929
13930
13931
13932 </td>
13933
13934
13935
13936 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
13937
13938 false
13939
13940 </td>
13941
13942
13943 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will only try to perform the action if the given &quot;className&quot; is being used. The result will be the same with either true or false, but depending on the client used it could gain or lose performance.</p></td>
13944 </tr>
13945
13946
13947
13948 <tr>
13949
13950 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onRemoveClass</code></td>
13951
13952
13953 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
13954
13955
13956<span class="param-type">function</span>
13957
13958
13959
13960
13961 </td>
13962
13963
13964 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
13965
13966 &lt;optional><br>
13967
13968
13969
13970
13971
13972 </td>
13973
13974
13975
13976 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
13977
13978 </td>
13979
13980
13981 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Callback function that will be called if the class of the element has been tried to be removed, after doing it (this will happens always if &quot;checkValues&quot; is false). The first and unique parameter passed will be the affected element itself.</p></td>
13982 </tr>
13983
13984
13985 </tbody>
13986</table>
13987
13988
13989
13990
13991<dl class="details">
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
14022 <dd class="tag-source">
14023 <ul class="dummy">
14024 <li>
14025 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
14026 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1306">line 1306</a>
14027 </li>
14028 </ul>
14029 </dd>
14030
14031
14032
14033
14034
14035
14036
14037 <dt class="tag-todo method-doc-label method-doc-details-label">To Do:</dt>
14038 <dd class="tag-todo">
14039 <ul>
14040 <li>Think about allowing to remove more than once class at the same time, regardless of the order given and order set.</li>
14041 </ul>
14042 </dd>
14043
14044</dl>
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058 <h5>Returns:</h5>
14059
14060
14061<div class="param-desc">
14062 <p>Returns the affected element (if any) or null otherwise.</p>
14063</div>
14064
14065
14066
14067<dl>
14068 <dt>
14069 Type
14070 </dt>
14071 <dd>
14072
14073<span class="param-type">Node</span>
14074|
14075
14076<span class="param-type">null</span>
14077
14078
14079
14080 </dd>
14081</dl>
14082
14083
14084
14085
14086
14087</dd>
14088
14089
14090
14091<hr>
14092<dt>
14093 <h4 class="name" id=".setClass"><span class="type-signature">&lt;static> </span>setClass<span class="signature">(element, classNames [, checkValues] [, onSetClass])</span><span class="type-signature"> &rarr; {Node}</span></h4>
14094
14095
14096</dt>
14097<dd>
14098
14099
14100 <div class="description">
14101 <p>Sets a desired class or classes to a given element. All previous classes (if any) will be replaced by the new one or new ones.</p>
14102 </div>
14103
14104
14105
14106
14107
14108
14109
14110
14111 <h5>Parameters:</h5>
14112
14113
14114<table class="params table table-striped">
14115 <thead>
14116 <tr>
14117
14118 <th style="width:12%; min-width:110px;">Name</th>
14119
14120
14121 <th style="width:12%; min-width:110px;">Type</th>
14122
14123
14124 <th style="width:12%; min-width:110px;">Argument</th>
14125
14126
14127
14128 <th style="width:12%; min-width:110px;">Default</th>
14129
14130
14131 <th class="last" style="min-width:310px;">Description</th>
14132 </tr>
14133 </thead>
14134
14135 <tbody>
14136
14137
14138 <tr>
14139
14140 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>element</code></td>
14141
14142
14143 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14144
14145
14146<span class="param-type">Node</span>
14147
14148
14149
14150
14151 </td>
14152
14153
14154 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14155
14156
14157
14158
14159
14160 </td>
14161
14162
14163
14164 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14165
14166 </td>
14167
14168
14169 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The element that will get the new given class or classes.</p></td>
14170 </tr>
14171
14172
14173
14174 <tr>
14175
14176 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>classNames</code></td>
14177
14178
14179 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14180
14181
14182<span class="param-type">string</span>
14183
14184
14185
14186
14187 </td>
14188
14189
14190 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14191
14192
14193
14194
14195
14196 </td>
14197
14198
14199
14200 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14201
14202 </td>
14203
14204
14205 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The class or classes that will be set. More than one class can be given (separated by blank spaces).</p></td>
14206 </tr>
14207
14208
14209
14210 <tr>
14211
14212 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>checkValues</code></td>
14213
14214
14215 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14216
14217
14218<span class="param-type">boolean</span>
14219
14220
14221
14222
14223 </td>
14224
14225
14226 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14227
14228 &lt;optional><br>
14229
14230
14231
14232
14233
14234 </td>
14235
14236
14237
14238 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14239
14240 false
14241
14242 </td>
14243
14244
14245 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will only try to set the given class or classes if they are not being used already.</p></td>
14246 </tr>
14247
14248
14249
14250 <tr>
14251
14252 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onSetClass</code></td>
14253
14254
14255 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14256
14257
14258<span class="param-type">function</span>
14259
14260
14261
14262
14263 </td>
14264
14265
14266 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14267
14268 &lt;optional><br>
14269
14270
14271
14272
14273
14274 </td>
14275
14276
14277
14278 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14279
14280 </td>
14281
14282
14283 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Callback function that will be called if the class or classes of the element have been set, after doing it (this will happens always if &quot;checkValues&quot; is false). The first and unique parameter passed will be the affected element itself.</p></td>
14284 </tr>
14285
14286
14287 </tbody>
14288</table>
14289
14290
14291
14292
14293<dl class="details">
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
14324 <dd class="tag-source">
14325 <ul class="dummy">
14326 <li>
14327 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
14328 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1364">line 1364</a>
14329 </li>
14330 </ul>
14331 </dd>
14332
14333
14334
14335
14336
14337
14338
14339</dl>
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353 <h5>Returns:</h5>
14354
14355
14356<div class="param-desc">
14357 <p>Returns the given element again.</p>
14358</div>
14359
14360
14361
14362<dl>
14363 <dt>
14364 Type
14365 </dt>
14366 <dd>
14367
14368<span class="param-type">Node</span>
14369
14370
14371
14372 </dd>
14373</dl>
14374
14375
14376
14377
14378
14379</dd>
14380
14381
14382
14383<hr>
14384<dt>
14385 <h4 class="name" id=".setClassById"><span class="type-signature">&lt;static> </span>setClassById<span class="signature">(elementId, classNames [, checkValues] [, onSetClass])</span><span class="type-signature"> &rarr; {Node|null}</span></h4>
14386
14387
14388</dt>
14389<dd>
14390
14391
14392 <div class="description">
14393 <p>Sets a desired class or classes to a given element (by its identifier). All previous classes (if any) will be replaced by the new one or new ones.</p>
14394 </div>
14395
14396
14397
14398
14399
14400
14401
14402
14403 <h5>Parameters:</h5>
14404
14405
14406<table class="params table table-striped">
14407 <thead>
14408 <tr>
14409
14410 <th style="width:12%; min-width:110px;">Name</th>
14411
14412
14413 <th style="width:12%; min-width:110px;">Type</th>
14414
14415
14416 <th style="width:12%; min-width:110px;">Argument</th>
14417
14418
14419
14420 <th style="width:12%; min-width:110px;">Default</th>
14421
14422
14423 <th class="last" style="min-width:310px;">Description</th>
14424 </tr>
14425 </thead>
14426
14427 <tbody>
14428
14429
14430 <tr>
14431
14432 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>elementId</code></td>
14433
14434
14435 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14436
14437
14438<span class="param-type">string</span>
14439
14440
14441
14442
14443 </td>
14444
14445
14446 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14447
14448
14449
14450
14451
14452 </td>
14453
14454
14455
14456 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14457
14458 </td>
14459
14460
14461 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element that will get the new given class or classes.</p></td>
14462 </tr>
14463
14464
14465
14466 <tr>
14467
14468 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>classNames</code></td>
14469
14470
14471 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14472
14473
14474<span class="param-type">string</span>
14475
14476
14477
14478
14479 </td>
14480
14481
14482 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14483
14484
14485
14486
14487
14488 </td>
14489
14490
14491
14492 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14493
14494 </td>
14495
14496
14497 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The class or classes that will be set. More than one class can be given (separated by blank spaces).</p></td>
14498 </tr>
14499
14500
14501
14502 <tr>
14503
14504 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>checkValues</code></td>
14505
14506
14507 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14508
14509
14510<span class="param-type">boolean</span>
14511
14512
14513
14514
14515 </td>
14516
14517
14518 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14519
14520 &lt;optional><br>
14521
14522
14523
14524
14525
14526 </td>
14527
14528
14529
14530 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14531
14532 false
14533
14534 </td>
14535
14536
14537 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will only try to set the given class or classes if they are not being used already.</p></td>
14538 </tr>
14539
14540
14541
14542 <tr>
14543
14544 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onSetClass</code></td>
14545
14546
14547 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14548
14549
14550<span class="param-type">function</span>
14551
14552
14553
14554
14555 </td>
14556
14557
14558 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14559
14560 &lt;optional><br>
14561
14562
14563
14564
14565
14566 </td>
14567
14568
14569
14570 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14571
14572 </td>
14573
14574
14575 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Callback function that will be called if the class or classes of the element have been set, after doing it (this will happens always if &quot;checkValues&quot; is false). The first and unique parameter passed will be the affected element itself.</p></td>
14576 </tr>
14577
14578
14579 </tbody>
14580</table>
14581
14582
14583
14584
14585<dl class="details">
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
14616 <dd class="tag-source">
14617 <ul class="dummy">
14618 <li>
14619 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
14620 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1387">line 1387</a>
14621 </li>
14622 </ul>
14623 </dd>
14624
14625
14626
14627
14628
14629
14630
14631</dl>
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645 <h5>Returns:</h5>
14646
14647
14648<div class="param-desc">
14649 <p>Returns the affected element (if any) or null otherwise.</p>
14650</div>
14651
14652
14653
14654<dl>
14655 <dt>
14656 Type
14657 </dt>
14658 <dd>
14659
14660<span class="param-type">Node</span>
14661|
14662
14663<span class="param-type">null</span>
14664
14665
14666
14667 </dd>
14668</dl>
14669
14670
14671
14672
14673
14674</dd>
14675
14676
14677
14678<hr>
14679<dt>
14680 <h4 class="name" id=".setProperty"><span class="type-signature">&lt;static> </span>setProperty<span class="signature">(element, property, propertyValue [, checkValues] [, onSetProperty])</span><span class="type-signature"> &rarr; {Node|null}</span></h4>
14681
14682
14683</dt>
14684<dd>
14685
14686
14687 <div class="description">
14688 <p>Changes a desired element property with the given value.</p>
14689 </div>
14690
14691
14692
14693
14694
14695
14696
14697
14698 <h5>Parameters:</h5>
14699
14700
14701<table class="params table table-striped">
14702 <thead>
14703 <tr>
14704
14705 <th style="width:12%; min-width:110px;">Name</th>
14706
14707
14708 <th style="width:12%; min-width:110px;">Type</th>
14709
14710
14711 <th style="width:12%; min-width:110px;">Argument</th>
14712
14713
14714
14715 <th style="width:12%; min-width:110px;">Default</th>
14716
14717
14718 <th class="last" style="min-width:310px;">Description</th>
14719 </tr>
14720 </thead>
14721
14722 <tbody>
14723
14724
14725 <tr>
14726
14727 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>element</code></td>
14728
14729
14730 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14731
14732
14733<span class="param-type">Node</span>
14734
14735
14736
14737
14738 </td>
14739
14740
14741 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14742
14743
14744
14745
14746
14747 </td>
14748
14749
14750
14751 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14752
14753 </td>
14754
14755
14756 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The element whose property we want to modify.</p></td>
14757 </tr>
14758
14759
14760
14761 <tr>
14762
14763 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>property</code></td>
14764
14765
14766 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14767
14768
14769<span class="param-type">string</span>
14770
14771
14772
14773
14774 </td>
14775
14776
14777 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14778
14779
14780
14781
14782
14783 </td>
14784
14785
14786
14787 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14788
14789 </td>
14790
14791
14792 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The name of the property that we want to modify.</p></td>
14793 </tr>
14794
14795
14796
14797 <tr>
14798
14799 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>propertyValue</code></td>
14800
14801
14802 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14803
14804
14805<span class="param-type">*</span>
14806
14807
14808
14809
14810 </td>
14811
14812
14813 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14814
14815
14816
14817
14818
14819 </td>
14820
14821
14822
14823 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14824
14825 </td>
14826
14827
14828 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The value desired for the property.</p></td>
14829 </tr>
14830
14831
14832
14833 <tr>
14834
14835 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>checkValues</code></td>
14836
14837
14838 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14839
14840
14841<span class="param-type">boolean</span>
14842
14843
14844
14845
14846 </td>
14847
14848
14849 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14850
14851 &lt;optional><br>
14852
14853
14854
14855
14856
14857 </td>
14858
14859
14860
14861 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14862
14863 false
14864
14865 </td>
14866
14867
14868 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If set to true, it will only modify the property if the current value is different from the given one.</p></td>
14869 </tr>
14870
14871
14872
14873 <tr>
14874
14875 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onSetProperty</code></td>
14876
14877
14878 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14879
14880
14881<span class="param-type">function</span>
14882
14883
14884
14885
14886 </td>
14887
14888
14889 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14890
14891 &lt;optional><br>
14892
14893
14894
14895
14896
14897 </td>
14898
14899
14900
14901 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
14902
14903 </td>
14904
14905
14906 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Callback function that will be called if the property of the element has been set, after doing it (this will happens always if &quot;checkValues&quot; is false). The first and unique parameter passed will be the affected element itself.</p></td>
14907 </tr>
14908
14909
14910 </tbody>
14911</table>
14912
14913
14914
14915
14916<dl class="details">
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
14947 <dd class="tag-source">
14948 <ul class="dummy">
14949 <li>
14950 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
14951 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-759">line 759</a>
14952 </li>
14953 </ul>
14954 </dd>
14955
14956
14957
14958
14959
14960
14961
14962</dl>
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976 <h5>Returns:</h5>
14977
14978
14979<div class="param-desc">
14980 <p>Returns the given element again or null.</p>
14981</div>
14982
14983
14984
14985<dl>
14986 <dt>
14987 Type
14988 </dt>
14989 <dd>
14990
14991<span class="param-type">Node</span>
14992|
14993
14994<span class="param-type">null</span>
14995
14996
14997
14998 </dd>
14999</dl>
15000
15001
15002
15003
15004
15005</dd>
15006
15007
15008
15009<hr>
15010<dt>
15011 <h4 class="name" id=".setPropertyById"><span class="type-signature">&lt;static> </span>setPropertyById<span class="signature">(elementId, property, propertyValue [, checkValues] [, onSetProperty])</span><span class="type-signature"> &rarr; {Node|null}</span></h4>
15012
15013
15014</dt>
15015<dd>
15016
15017
15018 <div class="description">
15019 <p>Changes a desired element property with the given value (by its identifier).</p>
15020 </div>
15021
15022
15023
15024
15025
15026
15027
15028
15029 <h5>Parameters:</h5>
15030
15031
15032<table class="params table table-striped">
15033 <thead>
15034 <tr>
15035
15036 <th style="width:12%; min-width:110px;">Name</th>
15037
15038
15039 <th style="width:12%; min-width:110px;">Type</th>
15040
15041
15042 <th style="width:12%; min-width:110px;">Argument</th>
15043
15044
15045
15046 <th style="width:12%; min-width:110px;">Default</th>
15047
15048
15049 <th class="last" style="min-width:310px;">Description</th>
15050 </tr>
15051 </thead>
15052
15053 <tbody>
15054
15055
15056 <tr>
15057
15058 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>elementId</code></td>
15059
15060
15061 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15062
15063
15064<span class="param-type">string</span>
15065
15066
15067
15068
15069 </td>
15070
15071
15072 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15073
15074
15075
15076
15077
15078 </td>
15079
15080
15081
15082 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15083
15084 </td>
15085
15086
15087 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element whose property we want to modify.</p></td>
15088 </tr>
15089
15090
15091
15092 <tr>
15093
15094 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>property</code></td>
15095
15096
15097 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15098
15099
15100<span class="param-type">string</span>
15101
15102
15103
15104
15105 </td>
15106
15107
15108 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15109
15110
15111
15112
15113
15114 </td>
15115
15116
15117
15118 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15119
15120 </td>
15121
15122
15123 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The name of the property that we want to modify.</p></td>
15124 </tr>
15125
15126
15127
15128 <tr>
15129
15130 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>propertyValue</code></td>
15131
15132
15133 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15134
15135
15136<span class="param-type">*</span>
15137
15138
15139
15140
15141 </td>
15142
15143
15144 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15145
15146
15147
15148
15149
15150 </td>
15151
15152
15153
15154 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15155
15156 </td>
15157
15158
15159 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The value desired for the property.</p></td>
15160 </tr>
15161
15162
15163
15164 <tr>
15165
15166 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>checkValues</code></td>
15167
15168
15169 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15170
15171
15172<span class="param-type">boolean</span>
15173
15174
15175
15176
15177 </td>
15178
15179
15180 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15181
15182 &lt;optional><br>
15183
15184
15185
15186
15187
15188 </td>
15189
15190
15191
15192 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15193
15194 false
15195
15196 </td>
15197
15198
15199 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If set to true, it will only modify the property if the current value is different from the given one.</p></td>
15200 </tr>
15201
15202
15203
15204 <tr>
15205
15206 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onSetProperty</code></td>
15207
15208
15209 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15210
15211
15212<span class="param-type">function</span>
15213
15214
15215
15216
15217 </td>
15218
15219
15220 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15221
15222 &lt;optional><br>
15223
15224
15225
15226
15227
15228 </td>
15229
15230
15231
15232 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15233
15234 </td>
15235
15236
15237 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Callback function that will be called if the property of the element has been set, after doing it (this will happens always if &quot;checkValues&quot; is false). The first and unique parameter passed will be the affected element itself.</p></td>
15238 </tr>
15239
15240
15241 </tbody>
15242</table>
15243
15244
15245
15246
15247<dl class="details">
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
15278 <dd class="tag-source">
15279 <ul class="dummy">
15280 <li>
15281 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
15282 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-781">line 781</a>
15283 </li>
15284 </ul>
15285 </dd>
15286
15287
15288
15289
15290
15291
15292
15293</dl>
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307 <h5>Returns:</h5>
15308
15309
15310<div class="param-desc">
15311 <p>Returns the affected element (if any) or null otherwise.</p>
15312</div>
15313
15314
15315
15316<dl>
15317 <dt>
15318 Type
15319 </dt>
15320 <dd>
15321
15322<span class="param-type">Node</span>
15323|
15324
15325<span class="param-type">null</span>
15326
15327
15328
15329 </dd>
15330</dl>
15331
15332
15333
15334
15335
15336</dd>
15337
15338
15339
15340<hr>
15341<dt>
15342 <h4 class="name" id=".show"><span class="type-signature">&lt;static> </span>show<span class="signature">(element [, displayValue] [, checkValues] [, computed] [, onShow])</span><span class="type-signature"> &rarr; {Node}</span></h4>
15343
15344
15345</dt>
15346<dd>
15347
15348
15349 <div class="description">
15350 <p>Changes the <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> property to the desired value of a given element, to show it. Its <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/visibility">visibility</a> property will be set to &quot;visible&quot;.</p>
15351 </div>
15352
15353
15354
15355
15356
15357
15358
15359
15360 <h5>Parameters:</h5>
15361
15362
15363<table class="params table table-striped">
15364 <thead>
15365 <tr>
15366
15367 <th style="width:12%; min-width:110px;">Name</th>
15368
15369
15370 <th style="width:12%; min-width:110px;">Type</th>
15371
15372
15373 <th style="width:12%; min-width:110px;">Argument</th>
15374
15375
15376
15377 <th style="width:12%; min-width:110px;">Default</th>
15378
15379
15380 <th class="last" style="min-width:310px;">Description</th>
15381 </tr>
15382 </thead>
15383
15384 <tbody>
15385
15386
15387 <tr>
15388
15389 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>element</code></td>
15390
15391
15392 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15393
15394
15395<span class="param-type">Node</span>
15396
15397
15398
15399
15400 </td>
15401
15402
15403 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15404
15405
15406
15407
15408
15409 </td>
15410
15411
15412
15413 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15414
15415 </td>
15416
15417
15418 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The element whose <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> property we want to change.</p></td>
15419 </tr>
15420
15421
15422
15423 <tr>
15424
15425 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>displayValue</code></td>
15426
15427
15428 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15429
15430
15431<span class="param-type">string</span>
15432
15433
15434
15435
15436 </td>
15437
15438
15439 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15440
15441 &lt;optional><br>
15442
15443
15444
15445
15446
15447 </td>
15448
15449
15450
15451 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15452
15453 'block'
15454
15455 </td>
15456
15457
15458 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> value we want to set. If not provided or &quot;none&quot; is provided, it will use &quot;block&quot; instead.</p></td>
15459 </tr>
15460
15461
15462
15463 <tr>
15464
15465 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>checkValues</code></td>
15466
15467
15468 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15469
15470
15471<span class="param-type">boolean</span>
15472
15473
15474
15475
15476 </td>
15477
15478
15479 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15480
15481 &lt;optional><br>
15482
15483
15484
15485
15486
15487 </td>
15488
15489
15490
15491 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15492
15493 false
15494
15495 </td>
15496
15497
15498 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will only perform the change if either the current <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/visibility">visibility</a> property is not &quot;visible&quot; or the current <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> property is different from the given one.</p></td>
15499 </tr>
15500
15501
15502
15503 <tr>
15504
15505 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
15506
15507
15508 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15509
15510
15511<span class="param-type">boolean</span>
15512
15513
15514
15515
15516 </td>
15517
15518
15519 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15520
15521 &lt;optional><br>
15522
15523
15524
15525
15526
15527 </td>
15528
15529
15530
15531 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15532
15533 false
15534
15535 </td>
15536
15537
15538 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>This parameter will be used when it calls <a href="CB_Elements.html#.getStyle"><code>CB_Elements.getStyle</code></a> internally.</p></td>
15539 </tr>
15540
15541
15542
15543 <tr>
15544
15545 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onShow</code></td>
15546
15547
15548 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15549
15550
15551<span class="param-type">function</span>
15552
15553
15554
15555
15556 </td>
15557
15558
15559 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15560
15561 &lt;optional><br>
15562
15563
15564
15565
15566
15567 </td>
15568
15569
15570
15571 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15572
15573 </td>
15574
15575
15576 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Callback function that will be called if the change has been performed, after doing it (this will happens always if &quot;checkValues&quot; is false). The first parameter passed will be the affected element itself and the second and last parameter will be the new value of the <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> property (not computed).</p></td>
15577 </tr>
15578
15579
15580 </tbody>
15581</table>
15582
15583
15584
15585
15586<dl class="details">
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
15617 <dd class="tag-source">
15618 <ul class="dummy">
15619 <li>
15620 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
15621 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1142">line 1142</a>
15622 </li>
15623 </ul>
15624 </dd>
15625
15626
15627
15628
15629
15630
15631
15632</dl>
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646 <h5>Returns:</h5>
15647
15648
15649<div class="param-desc">
15650 <p>Returns the given element again.</p>
15651</div>
15652
15653
15654
15655<dl>
15656 <dt>
15657 Type
15658 </dt>
15659 <dd>
15660
15661<span class="param-type">Node</span>
15662
15663
15664
15665 </dd>
15666</dl>
15667
15668
15669
15670
15671
15672</dd>
15673
15674
15675
15676<hr>
15677<dt>
15678 <h4 class="name" id=".showById"><span class="type-signature">&lt;static> </span>showById<span class="signature">(elementId [, displayValue] [, checkValues] [, computed] [, onShow])</span><span class="type-signature"> &rarr; {Node|null}</span></h4>
15679
15680
15681</dt>
15682<dd>
15683
15684
15685 <div class="description">
15686 <p>Changes the <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> property to the desired value of a given element, to show it (by its identifier). Its <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/visibility">visibility</a> property will be set to &quot;visible&quot;.</p>
15687 </div>
15688
15689
15690
15691
15692
15693
15694
15695
15696 <h5>Parameters:</h5>
15697
15698
15699<table class="params table table-striped">
15700 <thead>
15701 <tr>
15702
15703 <th style="width:12%; min-width:110px;">Name</th>
15704
15705
15706 <th style="width:12%; min-width:110px;">Type</th>
15707
15708
15709 <th style="width:12%; min-width:110px;">Argument</th>
15710
15711
15712
15713 <th style="width:12%; min-width:110px;">Default</th>
15714
15715
15716 <th class="last" style="min-width:310px;">Description</th>
15717 </tr>
15718 </thead>
15719
15720 <tbody>
15721
15722
15723 <tr>
15724
15725 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>elementId</code></td>
15726
15727
15728 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15729
15730
15731<span class="param-type">string</span>
15732
15733
15734
15735
15736 </td>
15737
15738
15739 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15740
15741
15742
15743
15744
15745 </td>
15746
15747
15748
15749 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15750
15751 </td>
15752
15753
15754 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element whose <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> property we want to change.</p></td>
15755 </tr>
15756
15757
15758
15759 <tr>
15760
15761 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>displayValue</code></td>
15762
15763
15764 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15765
15766
15767<span class="param-type">string</span>
15768
15769
15770
15771
15772 </td>
15773
15774
15775 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15776
15777 &lt;optional><br>
15778
15779
15780
15781
15782
15783 </td>
15784
15785
15786
15787 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15788
15789 'block'
15790
15791 </td>
15792
15793
15794 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> value we want to set. If not provided or &quot;none&quot; is provided, it will use &quot;block&quot; instead.</p></td>
15795 </tr>
15796
15797
15798
15799 <tr>
15800
15801 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>checkValues</code></td>
15802
15803
15804 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15805
15806
15807<span class="param-type">boolean</span>
15808
15809
15810
15811
15812 </td>
15813
15814
15815 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15816
15817 &lt;optional><br>
15818
15819
15820
15821
15822
15823 </td>
15824
15825
15826
15827 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15828
15829 false
15830
15831 </td>
15832
15833
15834 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will only perform the change if either the current <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/visibility">visibility</a> property is not &quot;visible&quot; or the current <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> property is different from the given one.</p></td>
15835 </tr>
15836
15837
15838
15839 <tr>
15840
15841 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
15842
15843
15844 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15845
15846
15847<span class="param-type">boolean</span>
15848
15849
15850
15851
15852 </td>
15853
15854
15855 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15856
15857 &lt;optional><br>
15858
15859
15860
15861
15862
15863 </td>
15864
15865
15866
15867 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15868
15869 false
15870
15871 </td>
15872
15873
15874 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>This parameter will be used when it calls <a href="CB_Elements.html#.getStyle"><code>CB_Elements.getStyle</code></a> internally.</p></td>
15875 </tr>
15876
15877
15878
15879 <tr>
15880
15881 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onShow</code></td>
15882
15883
15884 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15885
15886
15887<span class="param-type">function</span>
15888
15889
15890
15891
15892 </td>
15893
15894
15895 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15896
15897 &lt;optional><br>
15898
15899
15900
15901
15902
15903 </td>
15904
15905
15906
15907 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
15908
15909 </td>
15910
15911
15912 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Callback function that will be called if the change has been performed, after doing it (this will happens always if &quot;checkValues&quot; is false). The first parameter passed will be the affected element itself and the second and last parameter will be the new value of the <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> property (not computed).</p></td>
15913 </tr>
15914
15915
15916 </tbody>
15917</table>
15918
15919
15920
15921
15922<dl class="details">
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
15953 <dd class="tag-source">
15954 <ul class="dummy">
15955 <li>
15956 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
15957 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1170">line 1170</a>
15958 </li>
15959 </ul>
15960 </dd>
15961
15962
15963
15964
15965
15966
15967
15968</dl>
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982 <h5>Returns:</h5>
15983
15984
15985<div class="param-desc">
15986 <p>Returns the affected element (if any) or null otherwise.</p>
15987</div>
15988
15989
15990
15991<dl>
15992 <dt>
15993 Type
15994 </dt>
15995 <dd>
15996
15997<span class="param-type">Node</span>
15998|
15999
16000<span class="param-type">null</span>
16001
16002
16003
16004 </dd>
16005</dl>
16006
16007
16008
16009
16010
16011</dd>
16012
16013
16014
16015<hr>
16016<dt>
16017 <h4 class="name" id=".showHide"><span class="type-signature">&lt;static> </span>showHide<span class="signature">(element [, displayValue] [, checkValues] [, computed] [, onToggleDisplay] [, onShow] [, onHide])</span><span class="type-signature"> &rarr; {Node}</span></h4>
16018
16019
16020</dt>
16021<dd>
16022
16023
16024 <div class="description">
16025 <p>Toggles the <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> property (from &quot;none&quot; to the desired value or vice versa) of a given element, to show or hide it.<br>If the element is hidden (its <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> is &quot;none&quot;), it will call <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> internally to show it. Otherwise, it will call <a href="CB_Elements.html#.hide"><code>CB_Elements.hide</code></a> internally. Note that these two functions will also change the <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/visibility">visibility</a> property (setting it to either &quot;visible&quot; or &quot;hidden&quot;, respectively) of the element.</p>
16026 </div>
16027
16028
16029
16030
16031
16032
16033
16034
16035 <h5>Parameters:</h5>
16036
16037
16038<table class="params table table-striped">
16039 <thead>
16040 <tr>
16041
16042 <th style="width:12%; min-width:110px;">Name</th>
16043
16044
16045 <th style="width:12%; min-width:110px;">Type</th>
16046
16047
16048 <th style="width:12%; min-width:110px;">Argument</th>
16049
16050
16051
16052 <th style="width:12%; min-width:110px;">Default</th>
16053
16054
16055 <th class="last" style="min-width:310px;">Description</th>
16056 </tr>
16057 </thead>
16058
16059 <tbody>
16060
16061
16062 <tr>
16063
16064 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>element</code></td>
16065
16066
16067 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16068
16069
16070<span class="param-type">Node</span>
16071
16072
16073
16074
16075 </td>
16076
16077
16078 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16079
16080
16081
16082
16083
16084 </td>
16085
16086
16087
16088 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16089
16090 </td>
16091
16092
16093 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The element whose <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> property we want to toggle.</p></td>
16094 </tr>
16095
16096
16097
16098 <tr>
16099
16100 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>displayValue</code></td>
16101
16102
16103 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16104
16105
16106<span class="param-type">string</span>
16107
16108
16109
16110
16111 </td>
16112
16113
16114 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16115
16116 &lt;optional><br>
16117
16118
16119
16120
16121
16122 </td>
16123
16124
16125
16126 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16127
16128 'block'
16129
16130 </td>
16131
16132
16133 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> value when we want to show the element (it will be used only if the element is currently hidden, when it calls <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> internally). The <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> value to hide the element is always &quot;none&quot;.</p></td>
16134 </tr>
16135
16136
16137
16138 <tr>
16139
16140 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>checkValues</code></td>
16141
16142
16143 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16144
16145
16146<span class="param-type">boolean</span>
16147
16148
16149
16150
16151 </td>
16152
16153
16154 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16155
16156 &lt;optional><br>
16157
16158
16159
16160
16161
16162 </td>
16163
16164
16165
16166 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16167
16168 false
16169
16170 </td>
16171
16172
16173 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>This parameter will be used when it calls either <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> or <a href="CB_Elements.html#.hide"><code>CB_Elements.hide</code></a> internally.</p></td>
16174 </tr>
16175
16176
16177
16178 <tr>
16179
16180 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
16181
16182
16183 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16184
16185
16186<span class="param-type">boolean</span>
16187
16188
16189
16190
16191 </td>
16192
16193
16194 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16195
16196 &lt;optional><br>
16197
16198
16199
16200
16201
16202 </td>
16203
16204
16205
16206 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16207
16208 false
16209
16210 </td>
16211
16212
16213 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>This parameter will be used to get the current style and also when it calls either <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> or <a href="CB_Elements.html#.hide"><code>CB_Elements.hide</code></a> internally.</p></td>
16214 </tr>
16215
16216
16217
16218 <tr>
16219
16220 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onToggleDisplay</code></td>
16221
16222
16223 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16224
16225
16226<span class="param-type">function</span>
16227
16228
16229
16230
16231 </td>
16232
16233
16234 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16235
16236 &lt;optional><br>
16237
16238
16239
16240
16241
16242 </td>
16243
16244
16245
16246 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16247
16248 </td>
16249
16250
16251 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>This parameter will be used when it calls either <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> if &quot;onShow&quot; is not provided or <a href="CB_Elements.html#.hide"><code>CB_Elements.hide</code></a> if &quot;onHide&quot; is not provided, internally.</p></td>
16252 </tr>
16253
16254
16255
16256 <tr>
16257
16258 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onShow</code></td>
16259
16260
16261 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16262
16263
16264<span class="param-type">function</span>
16265
16266
16267
16268
16269 </td>
16270
16271
16272 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16273
16274 &lt;optional><br>
16275
16276
16277
16278
16279
16280 </td>
16281
16282
16283
16284 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16285
16286 </td>
16287
16288
16289 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>This parameter will be used when it calls <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> internally. If not provided but &quot;onToggleDisplay&quot; is provided, it will use the latter instead.</p></td>
16290 </tr>
16291
16292
16293
16294 <tr>
16295
16296 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onHide</code></td>
16297
16298
16299 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16300
16301
16302<span class="param-type">function</span>
16303
16304
16305
16306
16307 </td>
16308
16309
16310 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16311
16312 &lt;optional><br>
16313
16314
16315
16316
16317
16318 </td>
16319
16320
16321
16322 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16323
16324 </td>
16325
16326
16327 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>This parameter will be used when it calls <a href="CB_Elements.html#.hide"><code>CB_Elements.hide</code></a> internally. If not provided but &quot;onToggleDisplay&quot; is provided, it will use the latter instead.</p></td>
16328 </tr>
16329
16330
16331 </tbody>
16332</table>
16333
16334
16335
16336
16337<dl class="details">
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
16368 <dd class="tag-source">
16369 <ul class="dummy">
16370 <li>
16371 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
16372 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1101">line 1101</a>
16373 </li>
16374 </ul>
16375 </dd>
16376
16377
16378
16379
16380
16381
16382
16383</dl>
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397 <h5>Returns:</h5>
16398
16399
16400<div class="param-desc">
16401 <p>Returns the given element again.</p>
16402</div>
16403
16404
16405
16406<dl>
16407 <dt>
16408 Type
16409 </dt>
16410 <dd>
16411
16412<span class="param-type">Node</span>
16413
16414
16415
16416 </dd>
16417</dl>
16418
16419
16420
16421
16422
16423</dd>
16424
16425
16426
16427<hr>
16428<dt>
16429 <h4 class="name" id=".showHideById"><span class="type-signature">&lt;static> </span>showHideById<span class="signature">(elementId [, displayValue] [, checkValues] [, computed] [, onToggleDisplay] [, onShow] [, onHide])</span><span class="type-signature"> &rarr; {Node|null}</span></h4>
16430
16431
16432</dt>
16433<dd>
16434
16435
16436 <div class="description">
16437 <p>Toggles the <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> property (from &quot;none&quot; to the desired value or vice versa) of a given element, to show or hide it (by its identifier).<br>If the element is hidden (its <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> is &quot;none&quot;), it will call <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> internally to show it. Otherwise, it will call <a href="CB_Elements.html#.hide"><code>CB_Elements.hide</code></a> internally. Note that these two functions will also change the <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/visibility">visibility</a> property (setting it to either &quot;visible&quot; or &quot;hidden&quot;, respectively) of the element.</p>
16438 </div>
16439
16440
16441
16442
16443
16444
16445
16446
16447 <h5>Parameters:</h5>
16448
16449
16450<table class="params table table-striped">
16451 <thead>
16452 <tr>
16453
16454 <th style="width:12%; min-width:110px;">Name</th>
16455
16456
16457 <th style="width:12%; min-width:110px;">Type</th>
16458
16459
16460 <th style="width:12%; min-width:110px;">Argument</th>
16461
16462
16463
16464 <th style="width:12%; min-width:110px;">Default</th>
16465
16466
16467 <th class="last" style="min-width:310px;">Description</th>
16468 </tr>
16469 </thead>
16470
16471 <tbody>
16472
16473
16474 <tr>
16475
16476 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>elementId</code></td>
16477
16478
16479 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16480
16481
16482<span class="param-type">string</span>
16483
16484
16485
16486
16487 </td>
16488
16489
16490 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16491
16492
16493
16494
16495
16496 </td>
16497
16498
16499
16500 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16501
16502 </td>
16503
16504
16505 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element whose <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> property we want to toggle.</p></td>
16506 </tr>
16507
16508
16509
16510 <tr>
16511
16512 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>displayValue</code></td>
16513
16514
16515 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16516
16517
16518<span class="param-type">string</span>
16519
16520
16521
16522
16523 </td>
16524
16525
16526 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16527
16528 &lt;optional><br>
16529
16530
16531
16532
16533
16534 </td>
16535
16536
16537
16538 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16539
16540 'block'
16541
16542 </td>
16543
16544
16545 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> value when we want to show the element (it will be used only if the element is currently hidden, when it calls <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> internally). The <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">display</a> value to hide the element is always &quot;none&quot;.</p></td>
16546 </tr>
16547
16548
16549
16550 <tr>
16551
16552 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>checkValues</code></td>
16553
16554
16555 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16556
16557
16558<span class="param-type">boolean</span>
16559
16560
16561
16562
16563 </td>
16564
16565
16566 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16567
16568 &lt;optional><br>
16569
16570
16571
16572
16573
16574 </td>
16575
16576
16577
16578 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16579
16580 false
16581
16582 </td>
16583
16584
16585 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>This parameter will be used when it calls either <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> or <a href="CB_Elements.html#.hide"><code>CB_Elements.hide</code></a> internally.</p></td>
16586 </tr>
16587
16588
16589
16590 <tr>
16591
16592 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>computed</code></td>
16593
16594
16595 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16596
16597
16598<span class="param-type">boolean</span>
16599
16600
16601
16602
16603 </td>
16604
16605
16606 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16607
16608 &lt;optional><br>
16609
16610
16611
16612
16613
16614 </td>
16615
16616
16617
16618 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16619
16620 false
16621
16622 </td>
16623
16624
16625 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>This parameter will be used to get the current style and also when it calls either <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> or <a href="CB_Elements.html#.hide"><code>CB_Elements.hide</code></a> internally.</p></td>
16626 </tr>
16627
16628
16629
16630 <tr>
16631
16632 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onToggleDisplay</code></td>
16633
16634
16635 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16636
16637
16638<span class="param-type">function</span>
16639
16640
16641
16642
16643 </td>
16644
16645
16646 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16647
16648 &lt;optional><br>
16649
16650
16651
16652
16653
16654 </td>
16655
16656
16657
16658 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16659
16660 </td>
16661
16662
16663 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>This parameter will be used when it calls either <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> if &quot;onShow&quot; is not provided or <a href="CB_Elements.html#.hide"><code>CB_Elements.hide</code></a> if &quot;onHide&quot; is not provided, internally.</p></td>
16664 </tr>
16665
16666
16667
16668 <tr>
16669
16670 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onShow</code></td>
16671
16672
16673 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16674
16675
16676<span class="param-type">function</span>
16677
16678
16679
16680
16681 </td>
16682
16683
16684 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16685
16686 &lt;optional><br>
16687
16688
16689
16690
16691
16692 </td>
16693
16694
16695
16696 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16697
16698 </td>
16699
16700
16701 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>This parameter will be used when it calls <a href="CB_Elements.html#.show"><code>CB_Elements.show</code></a> internally. If not provided but &quot;onToggleDisplay&quot; is provided, it will use the latter instead.</p></td>
16702 </tr>
16703
16704
16705
16706 <tr>
16707
16708 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onHide</code></td>
16709
16710
16711 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16712
16713
16714<span class="param-type">function</span>
16715
16716
16717
16718
16719 </td>
16720
16721
16722 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16723
16724 &lt;optional><br>
16725
16726
16727
16728
16729
16730 </td>
16731
16732
16733
16734 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16735
16736 </td>
16737
16738
16739 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>This parameter will be used when it calls <a href="CB_Elements.html#.hide"><code>CB_Elements.hide</code></a> internally. If not provided but &quot;onToggleDisplay&quot; is provided, it will use the latter instead.</p></td>
16740 </tr>
16741
16742
16743 </tbody>
16744</table>
16745
16746
16747
16748
16749<dl class="details">
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
16780 <dd class="tag-source">
16781 <ul class="dummy">
16782 <li>
16783 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
16784 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1126">line 1126</a>
16785 </li>
16786 </ul>
16787 </dd>
16788
16789
16790
16791
16792
16793
16794
16795</dl>
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809 <h5>Returns:</h5>
16810
16811
16812<div class="param-desc">
16813 <p>Returns the affected element (if any) or null otherwise.</p>
16814</div>
16815
16816
16817
16818<dl>
16819 <dt>
16820 Type
16821 </dt>
16822 <dd>
16823
16824<span class="param-type">Node</span>
16825|
16826
16827<span class="param-type">null</span>
16828
16829
16830
16831 </dd>
16832</dl>
16833
16834
16835
16836
16837
16838</dd>
16839
16840
16841
16842<hr>
16843<dt>
16844 <h4 class="name" id=".tag"><span class="type-signature">&lt;static> </span>tag<span class="signature">( [tagName] [, baseElement] [, useCache])</span><span class="type-signature"> &rarr; {NodeList|array}</span></h4>
16845
16846
16847</dt>
16848<dd>
16849
16850
16851 <div class="description">
16852 <p>Returns elements by their tag name.</p>
16853 </div>
16854
16855
16856
16857
16858
16859
16860
16861
16862 <h5>Parameters:</h5>
16863
16864
16865<table class="params table table-striped">
16866 <thead>
16867 <tr>
16868
16869 <th style="width:12%; min-width:110px;">Name</th>
16870
16871
16872 <th style="width:12%; min-width:110px;">Type</th>
16873
16874
16875 <th style="width:12%; min-width:110px;">Argument</th>
16876
16877
16878
16879 <th style="width:12%; min-width:110px;">Default</th>
16880
16881
16882 <th class="last" style="min-width:310px;">Description</th>
16883 </tr>
16884 </thead>
16885
16886 <tbody>
16887
16888
16889 <tr>
16890
16891 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>tagName</code></td>
16892
16893
16894 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16895
16896
16897<span class="param-type">string</span>
16898
16899
16900
16901
16902 </td>
16903
16904
16905 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16906
16907 &lt;optional><br>
16908
16909
16910
16911
16912
16913 </td>
16914
16915
16916
16917 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16918
16919 '*'
16920
16921 </td>
16922
16923
16924 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The name of the tag whose elements we want to find. Use asterisk (&quot;*&quot;) in the case that we want all the elements.</p></td>
16925 </tr>
16926
16927
16928
16929 <tr>
16930
16931 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>baseElement</code></td>
16932
16933
16934 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16935
16936
16937<span class="param-type">Node</span>
16938
16939
16940
16941
16942 </td>
16943
16944
16945 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16946
16947 &lt;optional><br>
16948
16949
16950
16951
16952
16953 </td>
16954
16955
16956
16957 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16958
16959 document
16960
16961 </td>
16962
16963
16964 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The node element parent where we want to focus our search.</p></td>
16965 </tr>
16966
16967
16968
16969 <tr>
16970
16971 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>useCache</code></td>
16972
16973
16974 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16975
16976
16977<span class="param-type">boolean</span>
16978
16979
16980
16981
16982 </td>
16983
16984
16985 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16986
16987 &lt;optional><br>
16988
16989
16990
16991
16992
16993 </td>
16994
16995
16996
16997 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
16998
16999 <a href="CB_Configuration.CrossBase.html#.CB_Elements_tag_USE_CACHE"><code>CB_Configuration.CrossBase.CB_Elements_tag_USE_CACHE</code></a>
17000
17001 </td>
17002
17003
17004 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Defines whether to try to get the result from an internal cache (it will exist if we previously called the function with the same parameters) or not. The internal cache will be updated when this parameter is set to false or it will be created automatically when it did not exist before.</p></td>
17005 </tr>
17006
17007
17008 </tbody>
17009</table>
17010
17011
17012
17013
17014<dl class="details">
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
17045 <dd class="tag-source">
17046 <ul class="dummy">
17047 <li>
17048 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
17049 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-52">line 52</a>
17050 </li>
17051 </ul>
17052 </dd>
17053
17054
17055
17056
17057
17058
17059
17060</dl>
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074 <h5>Returns:</h5>
17075
17076
17077<div class="param-desc">
17078 <p>Returns the elements (NodeList or array, depending on the web client).</p>
17079</div>
17080
17081
17082
17083<dl>
17084 <dt>
17085 Type
17086 </dt>
17087 <dd>
17088
17089<span class="param-type">NodeList</span>
17090|
17091
17092<span class="param-type">array</span>
17093
17094
17095
17096 </dd>
17097</dl>
17098
17099
17100
17101
17102
17103</dd>
17104
17105
17106
17107<hr>
17108<dt>
17109 <h4 class="name" id=".tagCacheClear"><span class="type-signature">&lt;static> </span>tagCacheClear<span class="signature">( [tagName] [, baseElement])</span><span class="type-signature"> &rarr; {Object}</span></h4>
17110
17111
17112</dt>
17113<dd>
17114
17115
17116 <div class="description">
17117 <p>Clears the internal cache user by <a href="CB_Elements.html#.tag"><code>CB_Elements.tag</code></a> and others. If no parameter is given, whole internal cache will be cleared.</p>
17118 </div>
17119
17120
17121
17122
17123
17124
17125
17126
17127 <h5>Parameters:</h5>
17128
17129
17130<table class="params table table-striped">
17131 <thead>
17132 <tr>
17133
17134 <th style="width:12%; min-width:110px;">Name</th>
17135
17136
17137 <th style="width:12%; min-width:110px;">Type</th>
17138
17139
17140 <th style="width:12%; min-width:110px;">Argument</th>
17141
17142
17143
17144
17145 <th class="last" style="min-width:310px;">Description</th>
17146 </tr>
17147 </thead>
17148
17149 <tbody>
17150
17151
17152 <tr>
17153
17154 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>tagName</code></td>
17155
17156
17157 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17158
17159
17160<span class="param-type">string</span>
17161
17162
17163
17164
17165 </td>
17166
17167
17168 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17169
17170 &lt;optional><br>
17171
17172
17173
17174
17175
17176 </td>
17177
17178
17179
17180
17181 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The name of the tag whose internal cache we want to clear. Use asterisk (&quot;*&quot;) in the case that we want to clear the internal cache for <a href="CB_Elements.html#.tag"><code>CB_Elements.tag</code></a> which is used when it is called with this exact parameter. If not provided, it will clear the whole internal cache or the internal cache that belongs to the &quot;baseElement&quot; given (if provided).</p></td>
17182 </tr>
17183
17184
17185
17186 <tr>
17187
17188 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>baseElement</code></td>
17189
17190
17191 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17192
17193
17194<span class="param-type">Node</span>
17195
17196
17197
17198
17199 </td>
17200
17201
17202 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17203
17204 &lt;optional><br>
17205
17206
17207
17208
17209
17210 </td>
17211
17212
17213
17214
17215 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The node element parent whose internal cache we want to clear. If not provided but &quot;tagName&quot; is provided, it will clear the internal cache which matches the given &quot;tagName&quot; for any nodes. If it is provided but &quot;tagName&quot; is not, it will clear all the internal cache that belongs to this node element.</p></td>
17216 </tr>
17217
17218
17219 </tbody>
17220</table>
17221
17222
17223
17224
17225<dl class="details">
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
17256 <dd class="tag-source">
17257 <ul class="dummy">
17258 <li>
17259 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
17260 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-185">line 185</a>
17261 </li>
17262 </ul>
17263 </dd>
17264
17265
17266
17267
17268
17269
17270
17271</dl>
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285 <h5>Returns:</h5>
17286
17287
17288<div class="param-desc">
17289 <p>Returns the current internal cache after clearing it (if it is has been possible), which is an associative array of two dimensions (JavaScript object) whose first index belongs to the nodes, the second and last index belongs to the tag name and the value belongs to the returning value of the <a href="CB_Elements.html#.tag"><code>CB_Elements.tag</code></a> function when it was called for those parameters.</p>
17290</div>
17291
17292
17293
17294<dl>
17295 <dt>
17296 Type
17297 </dt>
17298 <dd>
17299
17300<span class="param-type">Object</span>
17301
17302
17303
17304 </dd>
17305</dl>
17306
17307
17308
17309
17310
17311</dd>
17312
17313
17314
17315<hr>
17316<dt>
17317 <h4 class="name" id=".tagCacheUpdate"><span class="type-signature">&lt;static> </span>tagCacheUpdate<span class="signature">( [tagName] [, baseElement])</span><span class="type-signature"> &rarr; {NodeList|array}</span></h4>
17318
17319
17320</dt>
17321<dd>
17322
17323
17324 <div class="description">
17325 <p>Returns elements by their tag name, updating (or creating) the internal cache. Calls the <a href="CB_Elements.html#.tag"><code>CB_Elements.tag</code></a> function internally, with the &quot;useCache&quot; parameter set to false.</p>
17326 </div>
17327
17328
17329
17330
17331
17332
17333
17334
17335 <h5>Parameters:</h5>
17336
17337
17338<table class="params table table-striped">
17339 <thead>
17340 <tr>
17341
17342 <th style="width:12%; min-width:110px;">Name</th>
17343
17344
17345 <th style="width:12%; min-width:110px;">Type</th>
17346
17347
17348 <th style="width:12%; min-width:110px;">Argument</th>
17349
17350
17351
17352 <th style="width:12%; min-width:110px;">Default</th>
17353
17354
17355 <th class="last" style="min-width:310px;">Description</th>
17356 </tr>
17357 </thead>
17358
17359 <tbody>
17360
17361
17362 <tr>
17363
17364 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>tagName</code></td>
17365
17366
17367 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17368
17369
17370<span class="param-type">string</span>
17371
17372
17373
17374
17375 </td>
17376
17377
17378 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17379
17380 &lt;optional><br>
17381
17382
17383
17384
17385
17386 </td>
17387
17388
17389
17390 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17391
17392 '*'
17393
17394 </td>
17395
17396
17397 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The name of the tag whose elements we want to find. Use asterisk (&quot;*&quot;) in the case that we want all the elements.</p></td>
17398 </tr>
17399
17400
17401
17402 <tr>
17403
17404 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>baseElement</code></td>
17405
17406
17407 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17408
17409
17410<span class="param-type">Node</span>
17411
17412
17413
17414
17415 </td>
17416
17417
17418 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17419
17420 &lt;optional><br>
17421
17422
17423
17424
17425
17426 </td>
17427
17428
17429
17430 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17431
17432 document
17433
17434 </td>
17435
17436
17437 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The node element parent where we want to focus our search.</p></td>
17438 </tr>
17439
17440
17441 </tbody>
17442</table>
17443
17444
17445
17446
17447<dl class="details">
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
17478 <dd class="tag-source">
17479 <ul class="dummy">
17480 <li>
17481 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
17482 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-172">line 172</a>
17483 </li>
17484 </ul>
17485 </dd>
17486
17487
17488
17489
17490
17491
17492
17493</dl>
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507 <h5>Returns:</h5>
17508
17509
17510<div class="param-desc">
17511 <p>Returns the elements (NodeList or array, depending on the web client).</p>
17512</div>
17513
17514
17515
17516<dl>
17517 <dt>
17518 Type
17519 </dt>
17520 <dd>
17521
17522<span class="param-type">NodeList</span>
17523|
17524
17525<span class="param-type">array</span>
17526
17527
17528
17529 </dd>
17530</dl>
17531
17532
17533
17534
17535
17536</dd>
17537
17538
17539
17540<hr>
17541<dt>
17542 <h4 class="name" id=".tagRemove"><span class="type-signature">&lt;static> </span>tagRemove<span class="signature">( [tagName] [, baseElement] [, useCache])</span><span class="type-signature"></span></h4>
17543
17544
17545</dt>
17546<dd>
17547
17548
17549 <div class="description">
17550 <p>Removes elements by their tag name.</p>
17551 </div>
17552
17553
17554
17555
17556
17557
17558
17559
17560 <h5>Parameters:</h5>
17561
17562
17563<table class="params table table-striped">
17564 <thead>
17565 <tr>
17566
17567 <th style="width:12%; min-width:110px;">Name</th>
17568
17569
17570 <th style="width:12%; min-width:110px;">Type</th>
17571
17572
17573 <th style="width:12%; min-width:110px;">Argument</th>
17574
17575
17576
17577 <th style="width:12%; min-width:110px;">Default</th>
17578
17579
17580 <th class="last" style="min-width:310px;">Description</th>
17581 </tr>
17582 </thead>
17583
17584 <tbody>
17585
17586
17587 <tr>
17588
17589 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>tagName</code></td>
17590
17591
17592 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17593
17594
17595<span class="param-type">string</span>
17596
17597
17598
17599
17600 </td>
17601
17602
17603 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17604
17605 &lt;optional><br>
17606
17607
17608
17609
17610
17611 </td>
17612
17613
17614
17615 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17616
17617 '*'
17618
17619 </td>
17620
17621
17622 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The name of the tag whose elements we want to delete. Use asterisk (&quot;*&quot;) in the case that we want all the elements.</p></td>
17623 </tr>
17624
17625
17626
17627 <tr>
17628
17629 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>baseElement</code></td>
17630
17631
17632 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17633
17634
17635<span class="param-type">Node</span>
17636
17637
17638
17639
17640 </td>
17641
17642
17643 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17644
17645 &lt;optional><br>
17646
17647
17648
17649
17650
17651 </td>
17652
17653
17654
17655 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17656
17657 document
17658
17659 </td>
17660
17661
17662 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The node element parent where we want to focus our search.</p></td>
17663 </tr>
17664
17665
17666
17667 <tr>
17668
17669 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>useCache</code></td>
17670
17671
17672 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17673
17674
17675<span class="param-type">boolean</span>
17676
17677
17678
17679
17680 </td>
17681
17682
17683 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17684
17685 &lt;optional><br>
17686
17687
17688
17689
17690
17691 </td>
17692
17693
17694
17695 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17696
17697 <a href="CB_Configuration.CrossBase.html#.CB_Elements_tag_USE_CACHE"><code>CB_Configuration.CrossBase.CB_Elements_tag_USE_CACHE</code></a>
17698
17699 </td>
17700
17701
17702 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Defines whether to try to get the result from an internal cache (it will exist if we previously called the function with the same parameters) or not. The internal cache will be updated when this parameter is set to false or it will be created automatically when it did not exist before.</p></td>
17703 </tr>
17704
17705
17706 </tbody>
17707</table>
17708
17709
17710
17711
17712<dl class="details">
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
17743 <dd class="tag-source">
17744 <ul class="dummy">
17745 <li>
17746 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
17747 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-241">line 241</a>
17748 </li>
17749 </ul>
17750 </dd>
17751
17752
17753
17754
17755
17756
17757
17758</dl>
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774</dd>
17775
17776
17777
17778<hr>
17779<dt>
17780 <h4 class="name" id=".toggleClass"><span class="type-signature">&lt;static> </span>toggleClass<span class="signature">(element, classA [, classB] [, onToggleClass])</span><span class="type-signature"> &rarr; {Node}</span></h4>
17781
17782
17783</dt>
17784<dd>
17785
17786
17787 <div class="description">
17788 <p>Toggles the class of a given element between two given classes or adds/removes the given class. The element can contain other classes and they will be kept.</p>
17789 </div>
17790
17791
17792
17793
17794
17795
17796
17797
17798 <h5>Parameters:</h5>
17799
17800
17801<table class="params table table-striped">
17802 <thead>
17803 <tr>
17804
17805 <th style="width:12%; min-width:110px;">Name</th>
17806
17807
17808 <th style="width:12%; min-width:110px;">Type</th>
17809
17810
17811 <th style="width:12%; min-width:110px;">Argument</th>
17812
17813
17814
17815 <th style="width:12%; min-width:110px;">Default</th>
17816
17817
17818 <th class="last" style="min-width:310px;">Description</th>
17819 </tr>
17820 </thead>
17821
17822 <tbody>
17823
17824
17825 <tr>
17826
17827 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>element</code></td>
17828
17829
17830 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17831
17832
17833<span class="param-type">Node</span>
17834
17835
17836
17837
17838 </td>
17839
17840
17841 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17842
17843
17844
17845
17846
17847 </td>
17848
17849
17850
17851 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17852
17853 </td>
17854
17855
17856 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The element whose class we want to toggle.</p></td>
17857 </tr>
17858
17859
17860
17861 <tr>
17862
17863 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>classA</code></td>
17864
17865
17866 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17867
17868
17869<span class="param-type">string</span>
17870
17871
17872
17873
17874 </td>
17875
17876
17877 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17878
17879
17880
17881
17882
17883 </td>
17884
17885
17886
17887 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17888
17889 </td>
17890
17891
17892 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The class that will be used in the case that the element is not using it already.</p></td>
17893 </tr>
17894
17895
17896
17897 <tr>
17898
17899 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>classB</code></td>
17900
17901
17902 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17903
17904
17905<span class="param-type">string</span>
17906
17907
17908
17909
17910 </td>
17911
17912
17913 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17914
17915 &lt;optional><br>
17916
17917
17918
17919
17920
17921 </td>
17922
17923
17924
17925 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17926
17927 ''
17928
17929 </td>
17930
17931
17932 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The class that will be used in the case that the given &quot;classA&quot; is being used by the element. If not given or an empty string is given, it will just remove the &quot;classA&quot; in the case it is being used by the element.</p></td>
17933 </tr>
17934
17935
17936
17937 <tr>
17938
17939 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onToggleClass</code></td>
17940
17941
17942 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17943
17944
17945<span class="param-type">function</span>
17946
17947
17948
17949
17950 </td>
17951
17952
17953 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17954
17955 &lt;optional><br>
17956
17957
17958
17959
17960
17961 </td>
17962
17963
17964
17965 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
17966
17967 </td>
17968
17969
17970 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Callback function that will be called if the class of the element has been toggled or removed, after doing it. The first parameter passed will be the affected element itself and the second and last parameter will be the class used this time (or an empty string).</p></td>
17971 </tr>
17972
17973
17974 </tbody>
17975</table>
17976
17977
17978
17979
17980<dl class="details">
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
18011 <dd class="tag-source">
18012 <ul class="dummy">
18013 <li>
18014 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
18015 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1225">line 1225</a>
18016 </li>
18017 </ul>
18018 </dd>
18019
18020
18021
18022
18023
18024
18025
18026</dl>
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040 <h5>Returns:</h5>
18041
18042
18043<div class="param-desc">
18044 <p>Returns the given element again.</p>
18045</div>
18046
18047
18048
18049<dl>
18050 <dt>
18051 Type
18052 </dt>
18053 <dd>
18054
18055<span class="param-type">Node</span>
18056
18057
18058
18059 </dd>
18060</dl>
18061
18062
18063
18064
18065
18066</dd>
18067
18068
18069
18070<hr>
18071<dt>
18072 <h4 class="name" id=".toggleClassById"><span class="type-signature">&lt;static> </span>toggleClassById<span class="signature">(elementId, classA [, classB] [, onToggleClass])</span><span class="type-signature"> &rarr; {Node|null}</span></h4>
18073
18074
18075</dt>
18076<dd>
18077
18078
18079 <div class="description">
18080 <p>Toggles the class of a given element between two given classes (by its identifier). The element can contain other classes and they will be kept.</p>
18081 </div>
18082
18083
18084
18085
18086
18087
18088
18089
18090 <h5>Parameters:</h5>
18091
18092
18093<table class="params table table-striped">
18094 <thead>
18095 <tr>
18096
18097 <th style="width:12%; min-width:110px;">Name</th>
18098
18099
18100 <th style="width:12%; min-width:110px;">Type</th>
18101
18102
18103 <th style="width:12%; min-width:110px;">Argument</th>
18104
18105
18106
18107 <th style="width:12%; min-width:110px;">Default</th>
18108
18109
18110 <th class="last" style="min-width:310px;">Description</th>
18111 </tr>
18112 </thead>
18113
18114 <tbody>
18115
18116
18117 <tr>
18118
18119 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>elementId</code></td>
18120
18121
18122 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
18123
18124
18125<span class="param-type">string</span>
18126
18127
18128
18129
18130 </td>
18131
18132
18133 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
18134
18135
18136
18137
18138
18139 </td>
18140
18141
18142
18143 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
18144
18145 </td>
18146
18147
18148 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The identifier of the element whose class we want to toggle.</p></td>
18149 </tr>
18150
18151
18152
18153 <tr>
18154
18155 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>classA</code></td>
18156
18157
18158 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
18159
18160
18161<span class="param-type">string</span>
18162
18163
18164
18165
18166 </td>
18167
18168
18169 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
18170
18171
18172
18173
18174
18175 </td>
18176
18177
18178
18179 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
18180
18181 </td>
18182
18183
18184 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The class that will be used in the case that the element is not using it already.</p></td>
18185 </tr>
18186
18187
18188
18189 <tr>
18190
18191 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>classB</code></td>
18192
18193
18194 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
18195
18196
18197<span class="param-type">string</span>
18198
18199
18200
18201
18202 </td>
18203
18204
18205 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
18206
18207 &lt;optional><br>
18208
18209
18210
18211
18212
18213 </td>
18214
18215
18216
18217 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
18218
18219 ''
18220
18221 </td>
18222
18223
18224 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The class that will be used in the case that the given &quot;classA&quot; is being used by the element. If not given or an empty string is given, it will just remove the &quot;classA&quot; in the case it is being used by the element.</p></td>
18225 </tr>
18226
18227
18228
18229 <tr>
18230
18231 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onToggleClass</code></td>
18232
18233
18234 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
18235
18236
18237<span class="param-type">function</span>
18238
18239
18240
18241
18242 </td>
18243
18244
18245 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
18246
18247 &lt;optional><br>
18248
18249
18250
18251
18252
18253 </td>
18254
18255
18256
18257 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
18258
18259 </td>
18260
18261
18262 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Callback function that will be called if the class of the element has been toggled or removed, after doing it. The first parameter passed will be the affected element itself and the second and last parameter will be the class used this time (or an empty string).</p></td>
18263 </tr>
18264
18265
18266 </tbody>
18267</table>
18268
18269
18270
18271
18272<dl class="details">
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
18303 <dd class="tag-source">
18304 <ul class="dummy">
18305 <li>
18306 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
18307 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1263">line 1263</a>
18308 </li>
18309 </ul>
18310 </dd>
18311
18312
18313
18314
18315
18316
18317
18318</dl>
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332 <h5>Returns:</h5>
18333
18334
18335<div class="param-desc">
18336 <p>Returns the affected element (if any) or null otherwise.</p>
18337</div>
18338
18339
18340
18341<dl>
18342 <dt>
18343 Type
18344 </dt>
18345 <dd>
18346
18347<span class="param-type">Node</span>
18348|
18349
18350<span class="param-type">null</span>
18351
18352
18353
18354 </dd>
18355</dl>
18356
18357
18358
18359
18360
18361</dd>
18362
18363 </dl>
18364
18365
18366
18367 <h3 class="subsection-title">Type Definitions</h3>
18368
18369 <dl>
18370
18371<hr>
18372<dt>
18373 <h4 class="name" id=".getScrollLeftById_getScrollTopById_ON_SCROLL_CHANGES"><span class="type-signature"></span>getScrollLeftById_getScrollTopById_ON_SCROLL_CHANGES<span class="signature">(scrollLeftOrTop, scrollLeftOrTopPrevious, scrollWidthOrHeight, clientWidthOrHeight, scrollLeftOrTopRelative, scrollLeftOrTopRelativePrevious)</span><span class="type-signature"></span></h4>
18374
18375
18376</dt>
18377<dd>
18378
18379
18380 <div class="description">
18381 <p>Callback that is used as the &quot;onScrollLeftChanges&quot; parameter for the <a href="CB_Elements.html#.getScrollLeftById"><code>CB_Elements.getScrollLeftById</code></a> function or as the &quot;onScrollTopChanges&quot; parameter for the <a href="CB_Elements.html#.getScrollTopById"><code>CB_Elements.getScrollTopById</code></a> function. All values received should be checked since some could be not numbers.</p>
18382 </div>
18383
18384
18385
18386
18387
18388
18389
18390
18391 <h5>Parameters:</h5>
18392
18393
18394<table class="params table table-striped">
18395 <thead>
18396 <tr>
18397
18398 <th style="width:12%; min-width:110px;">Name</th>
18399
18400
18401 <th style="width:12%; min-width:110px;">Type</th>
18402
18403
18404
18405
18406
18407 <th class="last" style="min-width:310px;">Description</th>
18408 </tr>
18409 </thead>
18410
18411 <tbody>
18412
18413
18414 <tr>
18415
18416 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>scrollLeftOrTop</code></td>
18417
18418
18419 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
18420
18421
18422<span class="param-type">*</span>
18423
18424
18425
18426
18427 </td>
18428
18429
18430
18431
18432
18433 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The scroll left or scroll top position.</p></td>
18434 </tr>
18435
18436
18437
18438 <tr>
18439
18440 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>scrollLeftOrTopPrevious</code></td>
18441
18442
18443 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
18444
18445
18446<span class="param-type">*</span>
18447
18448
18449
18450
18451 </td>
18452
18453
18454
18455
18456
18457 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The previous scroll left or scroll top position.</p></td>
18458 </tr>
18459
18460
18461
18462 <tr>
18463
18464 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>scrollWidthOrHeight</code></td>
18465
18466
18467 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
18468
18469
18470<span class="param-type">*</span>
18471
18472
18473
18474
18475 </td>
18476
18477
18478
18479
18480
18481 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The scroll width or scroll height.</p></td>
18482 </tr>
18483
18484
18485
18486 <tr>
18487
18488 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>clientWidthOrHeight</code></td>
18489
18490
18491 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
18492
18493
18494<span class="param-type">*</span>
18495
18496
18497
18498
18499 </td>
18500
18501
18502
18503
18504
18505 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The client width or client height (<a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/clientWidth">element.clientWidth</a>/<a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetWidth">element.offsetWidth</a> or <a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/clientHeight">element.clientHeight</a>/<a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetHeight">element.offsetHeight</a>, depending on the web client).</p></td>
18506 </tr>
18507
18508
18509
18510 <tr>
18511
18512 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>scrollLeftOrTopRelative</code></td>
18513
18514
18515 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
18516
18517
18518<span class="param-type">*</span>
18519
18520
18521
18522
18523 </td>
18524
18525
18526
18527
18528
18529 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The relative scroll left or scroll top position.</p></td>
18530 </tr>
18531
18532
18533
18534 <tr>
18535
18536 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>scrollLeftOrTopRelativePrevious</code></td>
18537
18538
18539 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
18540
18541
18542<span class="param-type">*</span>
18543
18544
18545
18546
18547 </td>
18548
18549
18550
18551
18552
18553 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The previous relative scroll left or scroll top position.</p></td>
18554 </tr>
18555
18556
18557 </tbody>
18558</table>
18559
18560
18561
18562
18563<dl class="details">
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
18594 <dd class="tag-source">
18595 <ul class="dummy">
18596 <li>
18597 <a href="CrossBase_general_CB_Elements.js.html">CrossBase/general/CB_Elements.js</a>,
18598 <a href="CrossBase_general_CB_Elements.js.html#sunlight-1-line-1930">line 1930</a>
18599 </li>
18600 </ul>
18601 </dd>
18602
18603
18604
18605
18606
18607
18608
18609</dl>
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625</dd>
18626
18627 </dl>
18628
18629
18630
18631</article>
18632
18633</section>
18634
18635
18636
18637
18638 </div>
18639 </div>
18640
18641 <div class="clearfix"></div>
18642
18643
18644 <div class="col-md-3">
18645 <div id="toc" class="col-md-3 hidden-xs hidden-sm hidden-md"></div>
18646 </div>
18647
18648
18649</div>
18650</div>
18651
18652
18653 <div class="modal fade" id="searchResults">
18654 <div class="modal-dialog">
18655 <div class="modal-content">
18656 <div class="modal-header">
18657 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
18658 <h4 class="modal-title">Search results</h4>
18659 </div>
18660 <div class="modal-body"></div>
18661 <div class="modal-footer">
18662 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
18663 </div>
18664 </div><!-- /.modal-content -->
18665 </div><!-- /.modal-dialog -->
18666 </div>
18667
18668
18669<footer>
18670
18671
18672 <span class="copyright">
18673 <a href="printable/" target="_blank">See a more printer-friendly version</a><hr /><span style="color:#000000">© <address style="display:inline; font-style:normal;"><a href="https://crossbrowdy.com/" target="_blank">CrossBrowdy</a> API documentation</address> by <a href="https://joanalbamaldonado.com/" target="_blank">Joan Alba Maldonado</a> - <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank">Creative Commons Attribution 4.0 International</a><br />DocStrap Copyright © 2012-2015 The contributors to the JSDoc3 and DocStrap projects.</span>
18674 </span>
18675
18676<span class="jsdoc-message">
18677 Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
18678
18679 on Mon Feb 3rd 2020
18680
18681 using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
18682</span>
18683</footer>
18684
18685<script src="scripts/docstrap.lib.js"></script>
18686<script src="scripts/toc.js"></script>
18687
18688 <script type="text/javascript" src="scripts/fulltext-search-ui.js"></script>
18689
18690
18691<script>
18692$( function () {
18693 $( "[id*='$']" ).each( function () {
18694 var $this = $( this );
18695
18696 $this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
18697 } );
18698
18699 $( ".tutorial-section pre, .readme-section pre, pre.prettyprint.source" ).each( function () {
18700 var $this = $( this );
18701
18702 var example = $this.find( "code" );
18703 exampleText = example.html();
18704 var lang = /{@lang (.*?)}/.exec( exampleText );
18705 if ( lang && lang[1] ) {
18706 exampleText = exampleText.replace( lang[0], "" );
18707 example.html( exampleText );
18708 lang = lang[1];
18709 } else {
18710 var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
18711 lang = langClassMatch ? langClassMatch[1] : "javascript";
18712 }
18713
18714 if ( lang ) {
18715
18716 $this
18717 .addClass( "sunlight-highlight-" + lang )
18718 .addClass( "linenums" )
18719 .html( example.html() );
18720
18721 }
18722 } );
18723
18724 Sunlight.highlightAll( {
18725 lineNumbers : true,
18726 showMenu : true,
18727 enableDoclinks : true
18728 } );
18729
18730 $.catchAnchorLinks( {
18731 navbarOffset: 10
18732 } );
18733 $( "#toc" ).toc( {
18734 anchorName : function ( i, heading, prefix ) {
18735 return $( heading ).attr( "id" ) || ( prefix + i );
18736 },
18737 selectors : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4",
18738 showAndHide : false,
18739 smoothScrolling: true
18740 } );
18741
18742 $( "#main span[id^='toc']" ).addClass( "toc-shim" );
18743 $( '.dropdown-toggle' ).dropdown();
18744
18745 $( "table" ).each( function () {
18746 var $this = $( this );
18747 $this.addClass('table');
18748 } );
18749
18750} );
18751</script>
18752
18753
18754
18755<!--Navigation and Symbol Display-->
18756
18757<script>
18758 $( function () {
18759 $( '#main' ).localScroll( {
18760 offset : { top : 60 } //offset by the height of your header (give or take a few px, see what works for you)
18761 } );
18762 $( "dt.name" ).each( function () {
18763 var $this = $( this ).find("h4");
18764 var icon = $( "<i/>" ).addClass( "icon-plus-sign" ).addClass( "pull-right" ).addClass( "icon-white" );
18765 var dt = $(this);
18766 var children = dt.next( "dd" );
18767
18768 dt.prepend( icon ).css( {cursor : "pointer"} );
18769 dt.addClass( "member-collapsed" ).addClass( "member" );
18770
18771
18772 children.hide();
18773
18774 dt.children().on( "click", function () {
18775 children = dt.next( "dd" );
18776 children.slideToggle( "fast", function () {
18777
18778 if ( children.is( ":visible" ) ) {
18779 icon.addClass( "icon-minus-sign" ).removeClass( "icon-plus-sign" ).removeClass( "icon-white" );
18780 dt.addClass( "member-open" ).animate( "member-collapsed" );
18781 } else {
18782 icon.addClass( "icon-plus-sign" ).removeClass( "icon-minus-sign" ).addClass( "icon-white" );
18783 dt.addClass( "member-collapsed" ).removeClass( "member-open" );
18784 }
18785 } );
18786 } );
18787
18788 } );
18789 } );
18790</script>
18791
18792
18793<!--Google Analytics-->
18794
18795
18796
18797 <script type="text/javascript">
18798 $(document).ready(function() {
18799 SearcherDisplay.init();
18800 });
18801 </script>
18802
18803
18804</body>
18805</html>
\No newline at end of file