@creative-web-solution/front-library 6.1.3 → 6.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/CHANGELOG.md +52 -1
  2. package/DOM/Class.js +1 -1
  3. package/DOM/OuterSize.js +1 -1
  4. package/DOM/matrix.js +1 -1
  5. package/DOM/size.js +1 -1
  6. package/DOM/wrap.js +2 -2
  7. package/Events/EventsManager.js +39 -81
  8. package/Events/HistoryController.js +3 -3
  9. package/Events/ImageLoad.js +1 -1
  10. package/Events/IntersectObserver.js +3 -2
  11. package/Events/KeyboardHandler.js +2 -2
  12. package/Events/MediaQueriesEvents.js +2 -2
  13. package/Events/TouchHover.js +3 -3
  14. package/Events/WindowEvents.js +3 -3
  15. package/Events/gesture.js +2 -2
  16. package/Events/onAnimationEnd.js +37 -33
  17. package/Events/onTransitionEnd.js +38 -29
  18. package/Events/pubSub.js +2 -2
  19. package/Helpers/Cookie.js +1 -1
  20. package/Helpers/TransitionHelpers.js +95 -0
  21. package/Helpers/extend.js +1 -1
  22. package/Helpers/getValue.js +1 -1
  23. package/Helpers/sequential.js +1 -1
  24. package/Helpers/wait.js +1 -1
  25. package/ModernizrAddons/css-var-support.js +3 -0
  26. package/ModernizrAddons/touchdevice.js +1 -1
  27. package/Modules/Accordion.js +12 -6
  28. package/Modules/Autocomplete.js +7 -7
  29. package/Modules/DragSlider.js +583 -0
  30. package/Modules/Notifications.js +8 -8
  31. package/Modules/Popin.js +8 -8
  32. package/Modules/ScrollSnap.js +8 -8
  33. package/Modules/SkinCheckbox.js +2 -2
  34. package/Modules/SkinFile.js +4 -4
  35. package/Modules/SkinRadio.js +3 -3
  36. package/Modules/SkinSelect.js +12 -12
  37. package/Modules/Slider.js +100 -32
  38. package/Modules/Tabs.js +5 -5
  39. package/Modules/Validator/Tools/RadioButton.js +1 -1
  40. package/Modules/Validator/Tools/ValidationState.js +1 -1
  41. package/Modules/Validator/Tools/getQueryFromForm.js +1 -1
  42. package/Modules/Validator/date.js +3 -3
  43. package/Modules/Validator/email.js +3 -3
  44. package/Modules/Validator/equals.js +3 -3
  45. package/Modules/Validator/index.js +6 -6
  46. package/Modules/Validator/max.js +2 -2
  47. package/Modules/Validator/maxlength.js +2 -2
  48. package/Modules/Validator/min.js +2 -2
  49. package/Modules/Validator/minlength.js +2 -2
  50. package/Modules/Validator/multiRequired.js +5 -5
  51. package/Modules/Validator/number.js +3 -3
  52. package/Modules/Validator/pattern.js +2 -2
  53. package/Modules/Validator/recaptcha.js +2 -2
  54. package/Modules/Validator/required.js +4 -4
  55. package/Modules/Validator/serverCheck.js +3 -3
  56. package/Modules/Validator/url.js +3 -3
  57. package/Modules/YouTubePlayer.js +2 -2
  58. package/Modules/globalState.js +1 -1
  59. package/README.md +3 -3
  60. package/Tools/PrefixedProperties.js +54 -0
  61. package/Tools/TouchDeviceSupport.js +1 -0
  62. package/WebGL/GLImageTransition/GLImageTransition.js +4 -4
  63. package/documentation/extra/events.md +2 -2
  64. package/documentation/extra/modernizr.md +1 -0
  65. package/documentation/extra/modules/DragSlider.md +111 -0
  66. package/documentation/extra/modules/YouTubePlayer.md +1 -1
  67. package/documentation/extra/modules/autocomplete.md +1 -1
  68. package/documentation/extra/modules/popin.md +3 -3
  69. package/documentation/extra/modules/slider.md +7 -3
  70. package/documentation/extra/modules/template.md +1 -1
  71. package/documentation/extra/modules/validator.md +13 -13
  72. package/documentation/extra/webgl/GLImageTransition.md +1 -1
  73. package/documentation/jsdocs/dom/global.html +389 -2
  74. package/documentation/jsdocs/dom/index.html +2 -2
  75. package/documentation/jsdocs/dom/quicksearch.html +1 -1
  76. package/documentation/jsdocs/events/common/DeviceOrientation.html +1 -1
  77. package/documentation/jsdocs/events/common/HistoryController.html +1 -1
  78. package/documentation/jsdocs/events/common/IntersectObserver.html +1 -1
  79. package/documentation/jsdocs/events/common/KeyboardHandler.html +1 -1
  80. package/documentation/jsdocs/events/common/MediaQueriesEvents.html +1 -1
  81. package/documentation/jsdocs/events/common/TouchHover.html +1 -1
  82. package/documentation/jsdocs/events/common/WindowEvents.html +1 -1
  83. package/documentation/jsdocs/events/common/classes.list.html +1 -1
  84. package/documentation/jsdocs/events/common/global.html +1 -1
  85. package/documentation/jsdocs/events/common/index.html +1 -1
  86. package/documentation/jsdocs/events/common/namespaces.list.html +1 -1
  87. package/documentation/jsdocs/events/common/pubSub.html +1 -1
  88. package/documentation/jsdocs/events/common/quicksearch.html +1 -1
  89. package/documentation/jsdocs/events/events-manager/global.html +1 -1
  90. package/documentation/jsdocs/events/events-manager/index.html +1 -1
  91. package/documentation/jsdocs/events/events-manager/quicksearch.html +1 -1
  92. package/documentation/jsdocs/events/gesture/global.html +1 -1
  93. package/documentation/jsdocs/events/gesture/index.html +1 -1
  94. package/documentation/jsdocs/events/gesture/quicksearch.html +1 -1
  95. package/documentation/jsdocs/helpers/array/global.html +1 -1
  96. package/documentation/jsdocs/helpers/array/index.html +1 -1
  97. package/documentation/jsdocs/helpers/array/quicksearch.html +1 -1
  98. package/documentation/jsdocs/helpers/colors/global.html +1 -1
  99. package/documentation/jsdocs/helpers/colors/index.html +1 -1
  100. package/documentation/jsdocs/helpers/colors/quicksearch.html +1 -1
  101. package/documentation/jsdocs/helpers/common/Cookie.html +2 -2
  102. package/documentation/jsdocs/helpers/common/UrlParser.html +1 -1
  103. package/documentation/jsdocs/helpers/common/classes.list.html +1 -1
  104. package/documentation/jsdocs/helpers/common/global.html +8 -2
  105. package/documentation/jsdocs/helpers/common/index.html +1 -1
  106. package/documentation/jsdocs/helpers/common/quicksearch.html +1 -1
  107. package/documentation/jsdocs/helpers/types/global.html +1 -1
  108. package/documentation/jsdocs/helpers/types/index.html +1 -1
  109. package/documentation/jsdocs/helpers/types/quicksearch.html +1 -1
  110. package/documentation/jsdocs/modules/accordion/Accordion.html +1 -1
  111. package/documentation/jsdocs/modules/accordion/classes.list.html +1 -1
  112. package/documentation/jsdocs/modules/accordion/index.html +1 -1
  113. package/documentation/jsdocs/modules/accordion/quicksearch.html +1 -1
  114. package/documentation/jsdocs/modules/autocomplete/Autocomplete.html +1 -1
  115. package/documentation/jsdocs/modules/autocomplete/classes.list.html +1 -1
  116. package/documentation/jsdocs/modules/autocomplete/index.html +1 -1
  117. package/documentation/jsdocs/modules/autocomplete/quicksearch.html +1 -1
  118. package/documentation/jsdocs/modules/common/DragSlider.html +946 -0
  119. package/documentation/jsdocs/modules/common/classes.list.html +310 -0
  120. package/documentation/jsdocs/modules/common/global.html +8 -1
  121. package/documentation/jsdocs/modules/common/globalState.html +8 -1
  122. package/documentation/jsdocs/modules/common/index.html +8 -1
  123. package/documentation/jsdocs/modules/common/namespaces.list.html +15 -1
  124. package/documentation/jsdocs/modules/common/quicksearch.html +1 -1
  125. package/documentation/jsdocs/modules/form-skin/SkinCheckbox.html +1 -1
  126. package/documentation/jsdocs/modules/form-skin/SkinFile.html +1 -1
  127. package/documentation/jsdocs/modules/form-skin/SkinRadio.html +1 -1
  128. package/documentation/jsdocs/modules/form-skin/SkinSelect.html +1 -1
  129. package/documentation/jsdocs/modules/form-skin/classes.list.html +1 -1
  130. package/documentation/jsdocs/modules/form-skin/global.html +1 -1
  131. package/documentation/jsdocs/modules/form-skin/index.html +1 -1
  132. package/documentation/jsdocs/modules/form-skin/quicksearch.html +1 -1
  133. package/documentation/jsdocs/modules/media-preloader/MediaPreloader.html +1 -1
  134. package/documentation/jsdocs/modules/media-preloader/classes.list.html +1 -1
  135. package/documentation/jsdocs/modules/media-preloader/index.html +1 -1
  136. package/documentation/jsdocs/modules/media-preloader/quicksearch.html +1 -1
  137. package/documentation/jsdocs/modules/notifications/Notifications.html +1 -1
  138. package/documentation/jsdocs/modules/notifications/classes.list.html +1 -1
  139. package/documentation/jsdocs/modules/notifications/index.html +1 -1
  140. package/documentation/jsdocs/modules/notifications/quicksearch.html +1 -1
  141. package/documentation/jsdocs/modules/popin/Popin.html +1 -1
  142. package/documentation/jsdocs/modules/popin/PopinController.html +1 -1
  143. package/documentation/jsdocs/modules/popin/classes.list.html +1 -1
  144. package/documentation/jsdocs/modules/popin/index.html +1 -1
  145. package/documentation/jsdocs/modules/popin/quicksearch.html +1 -1
  146. package/documentation/jsdocs/modules/scroll-snap/ScrollSnap.html +1 -1
  147. package/documentation/jsdocs/modules/scroll-snap/classes.list.html +1 -1
  148. package/documentation/jsdocs/modules/scroll-snap/index.html +1 -1
  149. package/documentation/jsdocs/modules/scroll-snap/quicksearch.html +1 -1
  150. package/documentation/jsdocs/modules/slider/Slider.html +1 -1
  151. package/documentation/jsdocs/modules/slider/SliderControls.html +159 -2
  152. package/documentation/jsdocs/modules/slider/classes.list.html +1 -1
  153. package/documentation/jsdocs/modules/slider/index.html +1 -1
  154. package/documentation/jsdocs/modules/slider/quicksearch.html +1 -1
  155. package/documentation/jsdocs/modules/tabs/Tabs.html +1 -1
  156. package/documentation/jsdocs/modules/tabs/classes.list.html +1 -1
  157. package/documentation/jsdocs/modules/tabs/index.html +1 -1
  158. package/documentation/jsdocs/modules/tabs/quicksearch.html +1 -1
  159. package/documentation/jsdocs/modules/validator/Validator.html +1 -1
  160. package/documentation/jsdocs/modules/validator/classes.list.html +1 -1
  161. package/documentation/jsdocs/modules/validator/global.html +1 -1
  162. package/documentation/jsdocs/modules/validator/index.html +1 -1
  163. package/documentation/jsdocs/modules/validator/quicksearch.html +1 -1
  164. package/documentation/jsdocs/modules/youtube-player/YouTubePlayer.html +1 -1
  165. package/documentation/jsdocs/modules/youtube-player/classes.list.html +1 -1
  166. package/documentation/jsdocs/modules/youtube-player/index.html +1 -1
  167. package/documentation/jsdocs/modules/youtube-player/quicksearch.html +1 -1
  168. package/package.json +1 -1
@@ -7,7 +7,7 @@
7
7
  <script src="scripts/fulltext-search.js"></script>
8
8
 
9
9
  <script type="text/x-docstrap-searchdb">
10
- {"classes.list.html":{"id":"classes.list.html","title":"Classes","body":" Documentation Classes MediaPreloader Classes Classes MediaPreloader × Search results Close Documentation generated by JSDoc 3.6.4 on 2020-07-28T16:49:07+02:00 using the DocStrap template. "},"index.html":{"id":"index.html","title":"Index","body":" Documentation Classes MediaPreloader × Search results Close Documentation generated by JSDoc 3.6.4 on 2020-07-28T16:49:08+02:00 using the DocStrap template. "},"MediaPreloader.html":{"id":"MediaPreloader.html","title":"Class: MediaPreloader","body":" Documentation Classes MediaPreloader Class: MediaPreloader MediaPreloader new MediaPreloader(options) Preload audio and video Parameters: Name Type Description options Object Properties Name Type Argument Description $media HTMLElement onProgress mediaPreloader_Callback &lt;optional&gt; Example let mp = new MediaPreloader( { \"$media\": $myVideo, \"onProgress\": percent =&gt; { } } ) .then( handler ) .catch( handler ); // Must start the load manually mp.startLoad(); // Browser capability allowMP4 = MediaPreloader.videoCanPlayType.mp4; allowWEBM = MediaPreloader.videoCanPlayType.WEBM; allowMP3 = MediaPreloader.videoCanPlayType.mp3; MediaPreloader.getUrl( '/path/my-video' ) // =&gt; '/path/my-video.mp4' if the browser use mp4 Members &lt;static&gt; videoCanPlayType :MediaPreloader_PlayType Browser play capabilities Type: MediaPreloader_PlayType Methods &lt;static&gt; getUrl(url) Add the correct extention depending on the browser capability Parameters: Name Type Description url String File name without extention Returns: Type String startLoad() Start the preload of the media Returns: Type Promise Type Definitions mediaPreloader_Callback(percent) Parameters: Name Type Description percent Number MediaPreloader_PlayType Properties: Name Type Description mp4 Boolean webm Boolean mp3 Boolean × Search results Close Documentation generated by JSDoc 3.6.4 on 2020-07-28T16:49:08+02:00 using the DocStrap template. "}}
10
+ {"classes.list.html":{"id":"classes.list.html","title":"Classes","body":" Documentation Classes MediaPreloader Classes Classes MediaPreloader × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:30+01:00 using the DocStrap template. "},"index.html":{"id":"index.html","title":"Index","body":" Documentation Classes MediaPreloader × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:31+01:00 using the DocStrap template. "},"MediaPreloader.html":{"id":"MediaPreloader.html","title":"Class: MediaPreloader","body":" Documentation Classes MediaPreloader Class: MediaPreloader MediaPreloader new MediaPreloader(options) Preload audio and video Parameters: Name Type Description options Object Properties Name Type Argument Description $media HTMLElement onProgress mediaPreloader_Callback &lt;optional&gt; Example let mp = new MediaPreloader( { \"$media\": $myVideo, \"onProgress\": percent =&gt; { } } ) .then( handler ) .catch( handler ); // Must start the load manually mp.startLoad(); // Browser capability allowMP4 = MediaPreloader.videoCanPlayType.mp4; allowWEBM = MediaPreloader.videoCanPlayType.WEBM; allowMP3 = MediaPreloader.videoCanPlayType.mp3; MediaPreloader.getUrl( '/path/my-video' ) // =&gt; '/path/my-video.mp4' if the browser use mp4 Members &lt;static&gt; videoCanPlayType :MediaPreloader_PlayType Browser play capabilities Type: MediaPreloader_PlayType Methods &lt;static&gt; getUrl(url) Add the correct extention depending on the browser capability Parameters: Name Type Description url String File name without extention Returns: Type String startLoad() Start the preload of the media Returns: Type Promise Type Definitions mediaPreloader_Callback(percent) Parameters: Name Type Description percent Number MediaPreloader_PlayType Properties: Name Type Description mp4 Boolean webm Boolean mp3 Boolean × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:31+01:00 using the DocStrap template. "}}
11
11
  </script>
12
12
 
13
13
  <script type="text/javascript">
@@ -3012,7 +3012,7 @@ notifSys.add( &#x27;Here is a simple notification&#x27; );</pre>
3012
3012
  <span class="jsdoc-message">
3013
3013
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
3014
3014
 
3015
- on 2020-07-28T16:49:08+02:00
3015
+ on 2021-02-03T15:24:31+01:00
3016
3016
 
3017
3017
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
3018
3018
  </span>
@@ -195,7 +195,7 @@
195
195
  <span class="jsdoc-message">
196
196
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
197
197
 
198
- on 2020-07-28T16:49:08+02:00
198
+ on 2021-02-03T15:24:31+01:00
199
199
 
200
200
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
201
201
  </span>
@@ -128,7 +128,7 @@
128
128
  <span class="jsdoc-message">
129
129
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
130
130
 
131
- on 2020-07-28T16:49:08+02:00
131
+ on 2021-02-03T15:24:31+01:00
132
132
 
133
133
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
134
134
  </span>
@@ -7,7 +7,7 @@
7
7
  <script src="scripts/fulltext-search.js"></script>
8
8
 
9
9
  <script type="text/x-docstrap-searchdb">
10
- {"classes.list.html":{"id":"classes.list.html","title":"Classes","body":" Documentation Classes Notifications Classes Classes Notifications × Search results Close Documentation generated by JSDoc 3.6.4 on 2020-07-28T16:49:08+02:00 using the DocStrap template. "},"index.html":{"id":"index.html","title":"Index","body":" Documentation Classes Notifications × Search results Close Documentation generated by JSDoc 3.6.4 on 2020-07-28T16:49:08+02:00 using the DocStrap template. "},"Notifications.html":{"id":"Notifications.html","title":"Class: Notifications","body":" Documentation Classes Notifications Class: Notifications Notifications new Notifications( [userOptions]) Manages a list of notifications Parameters: Name Type Argument Description userOptions Object &lt;optional&gt; Properties Name Type Argument Default Description $wrapper HTMLElement &lt;optional&gt; document.body onClick function &lt;optional&gt; autoCloseDelay Number &lt;optional&gt; 5 In second templates Object &lt;optional&gt; Properties Name Type Argument Default Description notifications String &lt;optional&gt; &lt;div class=\"notifications\"&gt;&lt;div class=\"list\"&gt;&lt;/div&gt;&lt;/div&gt; notification String &lt;optional&gt; &lt;div class=\"notification\"&gt;&lt;/div&gt; selectors Object &lt;optional&gt; Properties Name Type Argument Default Description notifications String &lt;optional&gt; .notifications list String &lt;optional&gt; .list notification String &lt;optional&gt; .notification cssClass Object &lt;optional&gt; Properties Name Type Argument Default Description open String &lt;optional&gt; open success String &lt;optional&gt; success danger String &lt;optional&gt; danger warning String &lt;optional&gt; warning info String &lt;optional&gt; info animations Object &lt;optional&gt; Properties Name Type Argument Description show function &lt;optional&gt; ($notification, options) =&gt; Promise hide function &lt;optional&gt; ($notification, options) =&gt; Promise Example let notifSys = new Notification(); notifSys.add( 'Here is a simple notification' ); Members &lt;static, readonly&gt; ERROR :String Notification error/danger type Type: String &lt;static, readonly&gt; INFO :String Notification information type Type: String &lt;static, readonly&gt; SUCCESS :String Notification success type Type: String &lt;static, readonly&gt; WARNING :String Notification warning type Type: String Methods add(html, type [, notificationOptions]) Add a new notification. Parameters: Name Type Argument Description html String type String notificationOptions Object &lt;optional&gt; Properties Name Type Argument Description closeDelay Number | false &lt;optional&gt; In second or False onClick function &lt;optional&gt; addDanger(html [, notificationOptions]) Add a new error/danger notification. Parameters: Name Type Argument Description html String notificationOptions Object &lt;optional&gt; Properties Name Type Argument Description closeDelay Number | false &lt;optional&gt; In second or False onClick function &lt;optional&gt; addInfo(html [, notificationOptions]) Add a new information notification. Parameters: Name Type Argument Description html String notificationOptions Object &lt;optional&gt; Properties Name Type Argument Description closeDelay Number | false &lt;optional&gt; In second or False onClick function &lt;optional&gt; addSuccess(html [, notificationOptions]) Add a new success notification. Parameters: Name Type Argument Description html String notificationOptions Object &lt;optional&gt; Properties Name Type Argument Description closeDelay Number | false &lt;optional&gt; In second or False onClick function &lt;optional&gt; addWarning(html [, notificationOptions]) Add a new warning notification. Parameters: Name Type Argument Description html String notificationOptions Object &lt;optional&gt; Properties Name Type Argument Description closeDelay Number | false &lt;optional&gt; In second or False onClick function &lt;optional&gt; clean() Close all notifications and remove all containers closeAll() Close all notifications × Search results Close Documentation generated by JSDoc 3.6.4 on 2020-07-28T16:49:08+02:00 using the DocStrap template. "}}
10
+ {"classes.list.html":{"id":"classes.list.html","title":"Classes","body":" Documentation Classes Notifications Classes Classes Notifications × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:31+01:00 using the DocStrap template. "},"index.html":{"id":"index.html","title":"Index","body":" Documentation Classes Notifications × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:31+01:00 using the DocStrap template. "},"Notifications.html":{"id":"Notifications.html","title":"Class: Notifications","body":" Documentation Classes Notifications Class: Notifications Notifications new Notifications( [userOptions]) Manages a list of notifications Parameters: Name Type Argument Description userOptions Object &lt;optional&gt; Properties Name Type Argument Default Description $wrapper HTMLElement &lt;optional&gt; document.body onClick function &lt;optional&gt; autoCloseDelay Number &lt;optional&gt; 5 In second templates Object &lt;optional&gt; Properties Name Type Argument Default Description notifications String &lt;optional&gt; &lt;div class=\"notifications\"&gt;&lt;div class=\"list\"&gt;&lt;/div&gt;&lt;/div&gt; notification String &lt;optional&gt; &lt;div class=\"notification\"&gt;&lt;/div&gt; selectors Object &lt;optional&gt; Properties Name Type Argument Default Description notifications String &lt;optional&gt; .notifications list String &lt;optional&gt; .list notification String &lt;optional&gt; .notification cssClass Object &lt;optional&gt; Properties Name Type Argument Default Description open String &lt;optional&gt; open success String &lt;optional&gt; success danger String &lt;optional&gt; danger warning String &lt;optional&gt; warning info String &lt;optional&gt; info animations Object &lt;optional&gt; Properties Name Type Argument Description show function &lt;optional&gt; ($notification, options) =&gt; Promise hide function &lt;optional&gt; ($notification, options) =&gt; Promise Example let notifSys = new Notification(); notifSys.add( 'Here is a simple notification' ); Members &lt;static, readonly&gt; ERROR :String Notification error/danger type Type: String &lt;static, readonly&gt; INFO :String Notification information type Type: String &lt;static, readonly&gt; SUCCESS :String Notification success type Type: String &lt;static, readonly&gt; WARNING :String Notification warning type Type: String Methods add(html, type [, notificationOptions]) Add a new notification. Parameters: Name Type Argument Description html String type String notificationOptions Object &lt;optional&gt; Properties Name Type Argument Description closeDelay Number | false &lt;optional&gt; In second or False onClick function &lt;optional&gt; addDanger(html [, notificationOptions]) Add a new error/danger notification. Parameters: Name Type Argument Description html String notificationOptions Object &lt;optional&gt; Properties Name Type Argument Description closeDelay Number | false &lt;optional&gt; In second or False onClick function &lt;optional&gt; addInfo(html [, notificationOptions]) Add a new information notification. Parameters: Name Type Argument Description html String notificationOptions Object &lt;optional&gt; Properties Name Type Argument Description closeDelay Number | false &lt;optional&gt; In second or False onClick function &lt;optional&gt; addSuccess(html [, notificationOptions]) Add a new success notification. Parameters: Name Type Argument Description html String notificationOptions Object &lt;optional&gt; Properties Name Type Argument Description closeDelay Number | false &lt;optional&gt; In second or False onClick function &lt;optional&gt; addWarning(html [, notificationOptions]) Add a new warning notification. Parameters: Name Type Argument Description html String notificationOptions Object &lt;optional&gt; Properties Name Type Argument Description closeDelay Number | false &lt;optional&gt; In second or False onClick function &lt;optional&gt; clean() Close all notifications and remove all containers closeAll() Close all notifications × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:31+01:00 using the DocStrap template. "}}
11
11
  </script>
12
12
 
13
13
  <script type="text/javascript">
@@ -3000,7 +3000,7 @@ popin.load( &#x27;my-url.html&#x27;, {method: &#x27;post&#x27;} );</pre>
3000
3000
  <span class="jsdoc-message">
3001
3001
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
3002
3002
 
3003
- on 2020-07-28T16:49:09+02:00
3003
+ on 2021-02-03T15:24:31+01:00
3004
3004
 
3005
3005
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
3006
3006
  </span>
@@ -1370,7 +1370,7 @@ popin.loadForm( $form );</pre>
1370
1370
  <span class="jsdoc-message">
1371
1371
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
1372
1372
 
1373
- on 2020-07-28T16:49:09+02:00
1373
+ on 2021-02-03T15:24:32+01:00
1374
1374
 
1375
1375
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
1376
1376
  </span>
@@ -198,7 +198,7 @@
198
198
  <span class="jsdoc-message">
199
199
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
200
200
 
201
- on 2020-07-28T16:49:08+02:00
201
+ on 2021-02-03T15:24:31+01:00
202
202
 
203
203
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
204
204
  </span>
@@ -128,7 +128,7 @@
128
128
  <span class="jsdoc-message">
129
129
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
130
130
 
131
- on 2020-07-28T16:49:09+02:00
131
+ on 2021-02-03T15:24:31+01:00
132
132
 
133
133
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
134
134
  </span>
@@ -7,7 +7,7 @@
7
7
  <script src="scripts/fulltext-search.js"></script>
8
8
 
9
9
  <script type="text/x-docstrap-searchdb">
10
- {"classes.list.html":{"id":"classes.list.html","title":"Classes","body":" Documentation Classes PopinPopinController Classes Classes Popin PopinController × Search results Close Documentation generated by JSDoc 3.6.4 on 2020-07-28T16:49:08+02:00 using the DocStrap template. "},"index.html":{"id":"index.html","title":"Index","body":" Documentation Classes PopinPopinController × Search results Close Documentation generated by JSDoc 3.6.4 on 2020-07-28T16:49:09+02:00 using the DocStrap template. "},"Popin.html":{"id":"Popin.html","title":"Class: Popin","body":" Documentation Classes PopinPopinController Class: Popin Popin new Popin(userOptions) Create a simple popin Parameters: Name Type Description userOptions Object Properties Name Type Argument Default Description modal Boolean &lt;optional&gt; false marginHeight Number &lt;optional&gt; 20 autoResize Boolean &lt;optional&gt; false errorMessage String &lt;optional&gt; Error while loading... enableKeyboard Boolean &lt;optional&gt; true onOpen Callback &lt;optional&gt; $popin =&gt; {} onClose Callback &lt;optional&gt; $popin =&gt; {} onLoad Callback &lt;optional&gt; $popin =&gt; Promise.resolve() setLinkResponseType function &lt;optional&gt; ( url, $link ) =&gt; 'text' Must return one of these values: arrayBuffer | blob | json | text | formData setFormResponseType function &lt;optional&gt; $form =&gt; 'text' Must return one of these values: arrayBuffer | blob | json | text | formData checkValidity function &lt;optional&gt; $form =&gt; true Must return true, false or a promise normalize function &lt;optional&gt; (body, response, isHttpError) =&gt; { return { success: true, data: body } } autoHandleAjaxError function &lt;optional&gt; true If false, ajax http error (404, 500, ...) should be handled in the normalize function templates Object &lt;optional&gt; Properties Name Type Argument Default Description popinLoader String &lt;optional&gt; &lt;div class=\\\"popin-loader\\\"&gt;&lt;/div&gt; popin String &lt;optional&gt; &lt;div class=\\\"popin\\\"&gt;&lt;div class=\\\"popin-content\\\"&gt;&lt;/div&gt;&lt;/div&gt; bgLayer String &lt;optional&gt; &lt;div class=\\\"bg-popin\\\"&gt;&lt;/div&gt; errorMessage String &lt;optional&gt; &lt;div class=\\\"error\\\"&gt;&lt;%= message %&gt;&lt;/div&gt; selectors Object &lt;optional&gt; Properties Name Type Argument Default Description popin String &lt;optional&gt; .popin popinContent String &lt;optional&gt; .popin-content links String &lt;optional&gt; a[data-popin] forms String &lt;optional&gt; form[data-popin] btClosePopin String &lt;optional&gt; button[data-close-popin] openOnLoadAttribute String &lt;optional&gt; data-onload-popin\" animations Object &lt;optional&gt; All functions return a promise Properties Name Type Argument Default Description openBg function &lt;optional&gt; $bg =&gt; { $bg.style.display = 'block'; return Promise.resolve(); } closeBg function &lt;optional&gt; $bg =&gt; { $bg.style.display = 'none'; return Promise.resolve(); } initOpenPopin function &lt;optional&gt; $popin =&gt; { $popin.style.display = 'block'; $popin.style.opacity = 0; return Promise.resolve(); } openPopin function &lt;optional&gt; $popin =&gt; { $popin.style.opacity = 1; return Promise.resolve(); } closePopin function &lt;optional&gt; $popin =&gt; { $popin.style.display = 'none'; return Promise.resolve(); } openLoader function &lt;optional&gt; $loader =&gt; { $loader.style.display = 'block'; return Promise.resolve(); } closeLoader function &lt;optional&gt; $loader =&gt; { $loader.style.display = 'none'; return Promise.resolve(); } See: extra/modules/popin.md for details. Example let popin = new Popin( popinOptions ); popin.load( 'my-url.html', {method: 'post'} ); Methods clear() Remove the content of the popin Returns: Type Promise close() Close the popin Returns: Type Promise closeLoading() Close the popin loading Returns: Type Promise destroy() Remove all events, css class or inline styles load(url, data [, type]) Load a file and display it in the popin Parameters: Name Type Argument Default Description url String data Object All parameters available for window.fetch type String &lt;optional&gt; text Returns: Type Promise loadForm($form) Send a form and display the result it in the popin Parameters: Name Type Description $form HTMLElement Returns: Type Promise loadLink($link) Load a page from a link and display the result it in the popin Parameters: Name Type Description $link HTMLElement Returns: Type Promise open() Open the popin Returns: Type Promise openLoading() Open the popin loading Returns: Type Promise set(html, openFirst) Insert some html in the popin and open it Parameters: Name Type Description html String openFirst Boolean Open the popin THEN insert the html Returns: Type Promise × Search results Close Documentation generated by JSDoc 3.6.4 on 2020-07-28T16:49:09+02:00 using the DocStrap template. "},"PopinController.html":{"id":"PopinController.html","title":"Class: PopinController","body":" Documentation Classes PopinPopinController Class: PopinController PopinController new PopinController(userOptions) Create a controller tha manage all popin in the page Parameters: Name Type Description userOptions Object Same options like the Popin class See: extra/modules/popin.md for details. Example let controller = new PopinController( popinOptions ); popin.loadForm( $form ); Methods clear() Remove the content of the popin Returns: Type Promise close() Close the popin Returns: Type Promise destroy() Remove all events, css class or inline styles load(url, data [, type]) Load a file and display it in the popin Parameters: Name Type Argument Default Description url String data Object All parameters available for window.fetch type String &lt;optional&gt; text Returns: Type Promise loadForm($form) Send a form and display the result it in the popin Parameters: Name Type Description $form HTMLElement Returns: Type Promise loadLink($link) Load a page from a link and display the result it in the popin Parameters: Name Type Description $link HTMLElement Returns: Type Promise open() Open the popin Returns: Type Promise set(html, openFirst) Insert some html in the popin and open it Parameters: Name Type Description html String openFirst Boolean Open the popin THEN insert the html Returns: Type Promise × Search results Close Documentation generated by JSDoc 3.6.4 on 2020-07-28T16:49:09+02:00 using the DocStrap template. "}}
10
+ {"classes.list.html":{"id":"classes.list.html","title":"Classes","body":" Documentation Classes PopinPopinController Classes Classes Popin PopinController × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:31+01:00 using the DocStrap template. "},"index.html":{"id":"index.html","title":"Index","body":" Documentation Classes PopinPopinController × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:31+01:00 using the DocStrap template. "},"Popin.html":{"id":"Popin.html","title":"Class: Popin","body":" Documentation Classes PopinPopinController Class: Popin Popin new Popin(userOptions) Create a simple popin Parameters: Name Type Description userOptions Object Properties Name Type Argument Default Description modal Boolean &lt;optional&gt; false marginHeight Number &lt;optional&gt; 20 autoResize Boolean &lt;optional&gt; false errorMessage String &lt;optional&gt; Error while loading... enableKeyboard Boolean &lt;optional&gt; true onOpen Callback &lt;optional&gt; $popin =&gt; {} onClose Callback &lt;optional&gt; $popin =&gt; {} onLoad Callback &lt;optional&gt; $popin =&gt; Promise.resolve() setLinkResponseType function &lt;optional&gt; ( url, $link ) =&gt; 'text' Must return one of these values: arrayBuffer | blob | json | text | formData setFormResponseType function &lt;optional&gt; $form =&gt; 'text' Must return one of these values: arrayBuffer | blob | json | text | formData checkValidity function &lt;optional&gt; $form =&gt; true Must return true, false or a promise normalize function &lt;optional&gt; (body, response, isHttpError) =&gt; { return { success: true, data: body } } autoHandleAjaxError function &lt;optional&gt; true If false, ajax http error (404, 500, ...) should be handled in the normalize function templates Object &lt;optional&gt; Properties Name Type Argument Default Description popinLoader String &lt;optional&gt; &lt;div class=\\\"popin-loader\\\"&gt;&lt;/div&gt; popin String &lt;optional&gt; &lt;div class=\\\"popin\\\"&gt;&lt;div class=\\\"popin-content\\\"&gt;&lt;/div&gt;&lt;/div&gt; bgLayer String &lt;optional&gt; &lt;div class=\\\"bg-popin\\\"&gt;&lt;/div&gt; errorMessage String &lt;optional&gt; &lt;div class=\\\"error\\\"&gt;&lt;%= message %&gt;&lt;/div&gt; selectors Object &lt;optional&gt; Properties Name Type Argument Default Description popin String &lt;optional&gt; .popin popinContent String &lt;optional&gt; .popin-content links String &lt;optional&gt; a[data-popin] forms String &lt;optional&gt; form[data-popin] btClosePopin String &lt;optional&gt; button[data-close-popin] openOnLoadAttribute String &lt;optional&gt; data-onload-popin\" animations Object &lt;optional&gt; All functions return a promise Properties Name Type Argument Default Description openBg function &lt;optional&gt; $bg =&gt; { $bg.style.display = 'block'; return Promise.resolve(); } closeBg function &lt;optional&gt; $bg =&gt; { $bg.style.display = 'none'; return Promise.resolve(); } initOpenPopin function &lt;optional&gt; $popin =&gt; { $popin.style.display = 'block'; $popin.style.opacity = 0; return Promise.resolve(); } openPopin function &lt;optional&gt; $popin =&gt; { $popin.style.opacity = 1; return Promise.resolve(); } closePopin function &lt;optional&gt; $popin =&gt; { $popin.style.display = 'none'; return Promise.resolve(); } openLoader function &lt;optional&gt; $loader =&gt; { $loader.style.display = 'block'; return Promise.resolve(); } closeLoader function &lt;optional&gt; $loader =&gt; { $loader.style.display = 'none'; return Promise.resolve(); } See: extra/modules/popin.md for details. Example let popin = new Popin( popinOptions ); popin.load( 'my-url.html', {method: 'post'} ); Methods clear() Remove the content of the popin Returns: Type Promise close() Close the popin Returns: Type Promise closeLoading() Close the popin loading Returns: Type Promise destroy() Remove all events, css class or inline styles load(url, data [, type]) Load a file and display it in the popin Parameters: Name Type Argument Default Description url String data Object All parameters available for window.fetch type String &lt;optional&gt; text Returns: Type Promise loadForm($form) Send a form and display the result it in the popin Parameters: Name Type Description $form HTMLElement Returns: Type Promise loadLink($link) Load a page from a link and display the result it in the popin Parameters: Name Type Description $link HTMLElement Returns: Type Promise open() Open the popin Returns: Type Promise openLoading() Open the popin loading Returns: Type Promise set(html, openFirst) Insert some html in the popin and open it Parameters: Name Type Description html String openFirst Boolean Open the popin THEN insert the html Returns: Type Promise × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:31+01:00 using the DocStrap template. "},"PopinController.html":{"id":"PopinController.html","title":"Class: PopinController","body":" Documentation Classes PopinPopinController Class: PopinController PopinController new PopinController(userOptions) Create a controller tha manage all popin in the page Parameters: Name Type Description userOptions Object Same options like the Popin class See: extra/modules/popin.md for details. Example let controller = new PopinController( popinOptions ); popin.loadForm( $form ); Methods clear() Remove the content of the popin Returns: Type Promise close() Close the popin Returns: Type Promise destroy() Remove all events, css class or inline styles load(url, data [, type]) Load a file and display it in the popin Parameters: Name Type Argument Default Description url String data Object All parameters available for window.fetch type String &lt;optional&gt; text Returns: Type Promise loadForm($form) Send a form and display the result it in the popin Parameters: Name Type Description $form HTMLElement Returns: Type Promise loadLink($link) Load a page from a link and display the result it in the popin Parameters: Name Type Description $link HTMLElement Returns: Type Promise open() Open the popin Returns: Type Promise set(html, openFirst) Insert some html in the popin and open it Parameters: Name Type Description html String openFirst Boolean Open the popin THEN insert the html Returns: Type Promise × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:32+01:00 using the DocStrap template. "}}
11
11
  </script>
12
12
 
13
13
  <script type="text/javascript">
@@ -2380,7 +2380,7 @@ sn.clean()</pre>
2380
2380
  <span class="jsdoc-message">
2381
2381
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
2382
2382
 
2383
- on 2020-07-28T16:49:09+02:00
2383
+ on 2021-02-03T15:24:31+01:00
2384
2384
 
2385
2385
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
2386
2386
  </span>
@@ -195,7 +195,7 @@
195
195
  <span class="jsdoc-message">
196
196
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
197
197
 
198
- on 2020-07-28T16:49:09+02:00
198
+ on 2021-02-03T15:24:31+01:00
199
199
 
200
200
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
201
201
  </span>
@@ -128,7 +128,7 @@
128
128
  <span class="jsdoc-message">
129
129
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
130
130
 
131
- on 2020-07-28T16:49:09+02:00
131
+ on 2021-02-03T15:24:31+01:00
132
132
 
133
133
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
134
134
  </span>
@@ -7,7 +7,7 @@
7
7
  <script src="scripts/fulltext-search.js"></script>
8
8
 
9
9
  <script type="text/x-docstrap-searchdb">
10
- {"classes.list.html":{"id":"classes.list.html","title":"Classes","body":" Documentation Classes ScrollSnap Classes Classes ScrollSnap × Search results Close Documentation generated by JSDoc 3.6.4 on 2020-07-28T16:49:09+02:00 using the DocStrap template. "},"index.html":{"id":"index.html","title":"Index","body":" Documentation Classes ScrollSnap × Search results Close Documentation generated by JSDoc 3.6.4 on 2020-07-28T16:49:09+02:00 using the DocStrap template. "},"ScrollSnap.html":{"id":"ScrollSnap.html","title":"Class: ScrollSnap","body":" Documentation Classes ScrollSnap Class: ScrollSnap ScrollSnap new ScrollSnap($scroller, options) Allow to snap to items when using a native scroll Parameters: Name Type Description $scroller Object options Object Properties Name Type Argument Default Description lockedClass String &lt;optional&gt; locked direction String &lt;optional&gt; h Values: 'h' | 'v' snapTo String | Array.&lt;HTMLElement&gt; &lt;optional&gt; minItemsToActivate number &lt;optional&gt; 2 $offsetElement HTMLElement &lt;optional&gt; offset Object &lt;optional&gt; Properties Name Type Argument Description top Number &lt;optional&gt; left Number &lt;optional&gt; onSnapStart ScrollSnap_Handler &lt;optional&gt; onSnapEnd ScrollSnap_Handler &lt;optional&gt; onReachStart ScrollSnap_Handler &lt;optional&gt; onReachEnd ScrollSnap_Handler &lt;optional&gt; _setScroll function &lt;optional&gt; Internal function using GSAP and scrollTo plugin to set the scroll. Can be override to use another library Example let sn = new ScrollSnap($scroller, options); // To refresh sn.refresh( [options] ) // To navigate sn.previous( [duration] ) sn.next( [duration] ) sn.scrollToItem( $item [, duration] ) sn.scrollToIndex( index [, duration] ) // To remove sn.clean() Methods clean() Remove all events, css class or inline styles next( [duration]) Scroll to the next item Parameters: Name Type Argument Description duration Number &lt;optional&gt; In ms previous( [duration]) Scroll to the previous item Parameters: Name Type Argument Description duration Number &lt;optional&gt; In ms refresh( [options]) Refresh the scroller and snap to the asked item Parameters: Name Type Argument Description options Object &lt;optional&gt; Properties Name Type Argument Description snapTo Array.&lt;HTMLElement&gt; | string Selector or DOMList of the items $itemToSnapOn HTMLElement &lt;optional&gt; Item to put on the left $offsetElement HTMLElement &lt;optional&gt; offset Object &lt;optional&gt; Properties Name Type Argument Description top Number &lt;optional&gt; left Number &lt;optional&gt; direction String &lt;optional&gt; Values: 'h' | 'v' scrollToIndex(index [, duration]) Scroll to a specific index Parameters: Name Type Argument Description index Number duration Number &lt;optional&gt; In ms scrollToItem($item [, duration]) Scroll to a specific item Parameters: Name Type Argument Description $item HTMLElement duration Number &lt;optional&gt; In ms Type Definitions ScrollSnap_Handler(data) Parameters: Name Type Description data Object Properties Name Type Description $scroller HTMLElement item Object Properties Name Type Description index number $item HTMLElement coords number type string If the event comes after a scroll: scroll. If it comes after a function call (like next, previous, ...): api. scrollerSize number offsetSize number × Search results Close Documentation generated by JSDoc 3.6.4 on 2020-07-28T16:49:09+02:00 using the DocStrap template. "}}
10
+ {"classes.list.html":{"id":"classes.list.html","title":"Classes","body":" Documentation Classes ScrollSnap Classes Classes ScrollSnap × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:31+01:00 using the DocStrap template. "},"index.html":{"id":"index.html","title":"Index","body":" Documentation Classes ScrollSnap × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:31+01:00 using the DocStrap template. "},"ScrollSnap.html":{"id":"ScrollSnap.html","title":"Class: ScrollSnap","body":" Documentation Classes ScrollSnap Class: ScrollSnap ScrollSnap new ScrollSnap($scroller, options) Allow to snap to items when using a native scroll Parameters: Name Type Description $scroller Object options Object Properties Name Type Argument Default Description lockedClass String &lt;optional&gt; locked direction String &lt;optional&gt; h Values: 'h' | 'v' snapTo String | Array.&lt;HTMLElement&gt; &lt;optional&gt; minItemsToActivate number &lt;optional&gt; 2 $offsetElement HTMLElement &lt;optional&gt; offset Object &lt;optional&gt; Properties Name Type Argument Description top Number &lt;optional&gt; left Number &lt;optional&gt; onSnapStart ScrollSnap_Handler &lt;optional&gt; onSnapEnd ScrollSnap_Handler &lt;optional&gt; onReachStart ScrollSnap_Handler &lt;optional&gt; onReachEnd ScrollSnap_Handler &lt;optional&gt; _setScroll function &lt;optional&gt; Internal function using GSAP and scrollTo plugin to set the scroll. Can be override to use another library Example let sn = new ScrollSnap($scroller, options); // To refresh sn.refresh( [options] ) // To navigate sn.previous( [duration] ) sn.next( [duration] ) sn.scrollToItem( $item [, duration] ) sn.scrollToIndex( index [, duration] ) // To remove sn.clean() Methods clean() Remove all events, css class or inline styles next( [duration]) Scroll to the next item Parameters: Name Type Argument Description duration Number &lt;optional&gt; In ms previous( [duration]) Scroll to the previous item Parameters: Name Type Argument Description duration Number &lt;optional&gt; In ms refresh( [options]) Refresh the scroller and snap to the asked item Parameters: Name Type Argument Description options Object &lt;optional&gt; Properties Name Type Argument Description snapTo Array.&lt;HTMLElement&gt; | string Selector or DOMList of the items $itemToSnapOn HTMLElement &lt;optional&gt; Item to put on the left $offsetElement HTMLElement &lt;optional&gt; offset Object &lt;optional&gt; Properties Name Type Argument Description top Number &lt;optional&gt; left Number &lt;optional&gt; direction String &lt;optional&gt; Values: 'h' | 'v' scrollToIndex(index [, duration]) Scroll to a specific index Parameters: Name Type Argument Description index Number duration Number &lt;optional&gt; In ms scrollToItem($item [, duration]) Scroll to a specific item Parameters: Name Type Argument Description $item HTMLElement duration Number &lt;optional&gt; In ms Type Definitions ScrollSnap_Handler(data) Parameters: Name Type Description data Object Properties Name Type Description $scroller HTMLElement item Object Properties Name Type Description index number $item HTMLElement coords number type string If the event comes after a scroll: scroll. If it comes after a function call (like next, previous, ...): api. scrollerSize number offsetSize number × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:31+01:00 using the DocStrap template. "}}
11
11
  </script>
12
12
 
13
13
  <script type="text/javascript">
@@ -3684,7 +3684,7 @@ promise = slider.previous();</pre>
3684
3684
  <span class="jsdoc-message">
3685
3685
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
3686
3686
 
3687
- on 2020-07-28T16:49:09+02:00
3687
+ on 2021-02-03T15:24:32+01:00
3688
3688
 
3689
3689
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
3690
3690
  </span>
@@ -593,7 +593,8 @@
593
593
  &quot;paginationItems&quot;: &#x27;.item&#x27;,
594
594
  &quot;autoslide&quot;: 10, // in second
595
595
  &quot;swipe&quot;: false,
596
- &quot;enableKeyboard&quot;: true
596
+ &quot;enableKeyboard&quot;: true,
597
+ &quot;gestureOptions&quot;: Object
597
598
  }
598
599
  );</pre>
599
600
 
@@ -1380,6 +1381,162 @@
1380
1381
 
1381
1382
 
1382
1383
 
1384
+ </dd>
1385
+
1386
+
1387
+
1388
+ <hr>
1389
+ <dt>
1390
+ <h4 class="name" id="startAutoslide"><span class="type-signature"></span>startAutoslide()</h4>
1391
+
1392
+
1393
+ </dt>
1394
+ <dd>
1395
+
1396
+
1397
+ <div class="description">
1398
+ Start the autoslide
1399
+ </div>
1400
+
1401
+
1402
+
1403
+
1404
+
1405
+
1406
+
1407
+
1408
+
1409
+
1410
+ <dl class="details">
1411
+
1412
+
1413
+
1414
+
1415
+
1416
+
1417
+
1418
+
1419
+
1420
+
1421
+
1422
+
1423
+
1424
+
1425
+
1426
+
1427
+
1428
+
1429
+
1430
+
1431
+
1432
+
1433
+
1434
+
1435
+
1436
+
1437
+
1438
+
1439
+
1440
+
1441
+
1442
+
1443
+
1444
+
1445
+
1446
+ </dl>
1447
+
1448
+
1449
+
1450
+
1451
+
1452
+
1453
+
1454
+
1455
+
1456
+
1457
+
1458
+
1459
+
1460
+
1461
+
1462
+ </dd>
1463
+
1464
+
1465
+
1466
+ <hr>
1467
+ <dt>
1468
+ <h4 class="name" id="startAutoslide"><span class="type-signature"></span>startAutoslide()</h4>
1469
+
1470
+
1471
+ </dt>
1472
+ <dd>
1473
+
1474
+
1475
+ <div class="description">
1476
+ Stop the autoslide
1477
+ </div>
1478
+
1479
+
1480
+
1481
+
1482
+
1483
+
1484
+
1485
+
1486
+
1487
+
1488
+ <dl class="details">
1489
+
1490
+
1491
+
1492
+
1493
+
1494
+
1495
+
1496
+
1497
+
1498
+
1499
+
1500
+
1501
+
1502
+
1503
+
1504
+
1505
+
1506
+
1507
+
1508
+
1509
+
1510
+
1511
+
1512
+
1513
+
1514
+
1515
+
1516
+
1517
+
1518
+
1519
+
1520
+
1521
+
1522
+
1523
+
1524
+ </dl>
1525
+
1526
+
1527
+
1528
+
1529
+
1530
+
1531
+
1532
+
1533
+
1534
+
1535
+
1536
+
1537
+
1538
+
1539
+
1383
1540
  </dd>
1384
1541
 
1385
1542
  </dl>
@@ -1432,7 +1589,7 @@
1432
1589
  <span class="jsdoc-message">
1433
1590
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
1434
1591
 
1435
- on 2020-07-28T16:49:10+02:00
1592
+ on 2021-02-03T15:24:32+01:00
1436
1593
 
1437
1594
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
1438
1595
  </span>
@@ -894,7 +894,7 @@
894
894
  <span class="jsdoc-message">
895
895
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
896
896
 
897
- on 2020-07-28T16:49:09+02:00
897
+ on 2021-02-03T15:24:32+01:00
898
898
 
899
899
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
900
900
  </span>
@@ -135,7 +135,7 @@
135
135
  <span class="jsdoc-message">
136
136
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
137
137
 
138
- on 2020-07-28T16:49:09+02:00
138
+ on 2021-02-03T15:24:32+01:00
139
139
 
140
140
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
141
141
  </span>
@@ -7,7 +7,7 @@
7
7
  <script src="scripts/fulltext-search.js"></script>
8
8
 
9
9
  <script type="text/x-docstrap-searchdb">
10
- {"classes.list.html":{"id":"classes.list.html","title":"Classes","body":" Documentation Classes SliderSliderControls Events Slider#event:afterSlider#event:afterEachSlider#event:beforeSlider#event:beforeEachSlider#event:start Classes Classes Slider SliderControls Events after After starting to move. Only one time for the whole animation. Type: Object Properties: Name Type Description data SlideEventData_Params afterEach After each slide move. If moving for 3 slides, it will be called 3 times. Type: Object Properties: Name Type Description data SlideEventData_Params before Before starting to move. Only one time for the whole animation. Type: Object Properties: Name Type Description data SlideEventData_Params beforeEach Before each slide move. If moving for 3 slides, it will be called 3 times. Type: Object Properties: Name Type Description data SlideEventData_Params start On the initialization of the slider Type: Object Properties: Name Type Description data SlideEventData_Params Only currentSlide property × Search results Close Documentation generated by JSDoc 3.6.4 on 2020-07-28T16:49:09+02:00 using the DocStrap template. "},"index.html":{"id":"index.html","title":"Index","body":" Documentation Classes SliderSliderControls Events Slider#event:afterSlider#event:afterEachSlider#event:beforeSlider#event:beforeEachSlider#event:start × Search results Close Documentation generated by JSDoc 3.6.4 on 2020-07-28T16:49:09+02:00 using the DocStrap template. "},"Slider.html":{"id":"Slider.html","title":"Class: Slider","body":" Documentation Classes SliderSliderControls Events Slider#event:afterSlider#event:afterEachSlider#event:beforeSlider#event:beforeEachSlider#event:start Class: Slider Slider new Slider($slider [, userOptions]) Slider Parameters: Name Type Argument Description $slider HTMLElement userOptions Object &lt;optional&gt; Properties Name Type Argument Default Description startSlide Number &lt;optional&gt; 0 nbSlideVisibleBefore Number &lt;optional&gt; 0 nbSlideVisibleAfter Number &lt;optional&gt; 0 slidePerPage Number &lt;optional&gt; 1 moveByPage Boolean &lt;optional&gt; true speed Number &lt;optional&gt; 0.5 In second listSelector String &lt;optional&gt; .list itemsSelector String &lt;optional&gt; .item activeClass String &lt;optional&gt; active-slide loop Boolean &lt;optional&gt; true smoothHeight Boolean &lt;optional&gt; true onBefore Callback &lt;optional&gt; data =&gt; {} Called one time at the begining of the animation onBeforeEach Callback &lt;optional&gt; data =&gt; {} Called for every slide that will come in the 1st position during the animation onAfter Callback &lt;optional&gt; data =&gt; {} Called one time at the end of the animation onAfterEach Callback &lt;optional&gt; data =&gt; {} Called for every slide that is came in the 1st position during the animation onStart Callback &lt;optional&gt; data =&gt; {} Called one time at the initialisation of the slider options._setStyle function &lt;optional&gt; Internal function using GSAP to set CSS styles. Can be override to use another library options._tweenTo function &lt;optional&gt; Internal function using GSAP to tween element. Can be override to use another library options._tweenFromTo function &lt;optional&gt; Internal function using GSAP to initialize and tween element. Can be override to use another library options._killTweens function &lt;optional&gt; Internal function using GSAP to remove tweens from element. Can be override to use another library See: extra/modules/slider.md Example let slider = new Slider( $slider, options ); promise = slider.previous(); Members $list :HTMLElement Wrapper of the slides Type: HTMLElement $slider :HTMLElement The DOM element of the slider Type: HTMLElement $slides :Array.&lt;HTMLElement&gt; All slides Type: Array.&lt;HTMLElement&gt; bulletCount :Number Number of bullet needed in a pager Type: Number pageCount :Number Number of pages (can have several slides by page) Type: Number slideCount :Number Number of slides Type: Number Methods destroy() Remove all events, css class or inline styles getCurrentSlide() Get the current active slide Returns: Type Slide getSlide(index) Get a slide in function of an index Parameters: Name Type Description index Number Returns: Type Slide goTo(page [, $button]) Go to the asked slide or page Parameters: Name Type Argument Description page Number $button HTMLElement &lt;optional&gt; Internal use only Returns: Type Promise isEnabled() Check if the slider is enable or not Returns: Type Boolean next( [$button]) Go to the next slide or page Parameters: Name Type Argument Description $button HTMLElement &lt;optional&gt; Internal use only Returns: Type Promise previous( [$button]) Go to the previous slide or page Parameters: Name Type Argument Description $button HTMLElement &lt;optional&gt; Internal use only Returns: Type Promise Type Definitions Slide Type: object Properties: Name Type Description $slide HTMLElement id String delay Number In seconds index Number position Number (= index + 1) isFirst Boolean isLast Boolean isVisible Boolean isActive Boolean SlideEventData_Params Type: Object Properties: Name Type Description targetSlide Slide currentSlide Slide direction Number 1 = next, -1 = previous Events after After starting to move. Only one time for the whole animation. Type: Object Properties: Name Type Description data SlideEventData_Params afterEach After each slide move. If moving for 3 slides, it will be called 3 times. Type: Object Properties: Name Type Description data SlideEventData_Params before Before starting to move. Only one time for the whole animation. Type: Object Properties: Name Type Description data SlideEventData_Params beforeEach Before each slide move. If moving for 3 slides, it will be called 3 times. Type: Object Properties: Name Type Description data SlideEventData_Params start On the initialization of the slider Type: Object Properties: Name Type Description data SlideEventData_Params Only currentSlide property × Search results Close Documentation generated by JSDoc 3.6.4 on 2020-07-28T16:49:09+02:00 using the DocStrap template. "},"SliderControls.html":{"id":"SliderControls.html","title":"Class: SliderControls","body":" Documentation Classes SliderSliderControls Events Slider#event:afterSlider#event:afterEachSlider#event:beforeSlider#event:beforeEachSlider#event:start Class: SliderControls SliderControls new SliderControls(slider, userOptions) Controls of a slider Parameters: Name Type Description slider Slider userOptions Object Properties Name Type Argument Default Description $btPrev HTMLElement &lt;optional&gt; $btNext HTMLElement &lt;optional&gt; $pagination HTMLElement &lt;optional&gt; paginationItems String &lt;optional&gt; autoslide Number &lt;optional&gt; In second swipe Boolean &lt;optional&gt; false enableKeyboard Boolean &lt;optional&gt; false gestureOptions Object &lt;optional&gt; See gesture module options See: extra/modules/slider.md Example let controls = new SliderControls( slider, { \"$btPrev\": $previousButtton, \"$btNext\": $nextButton, \"$pagination\": $pagination, \"paginationItems\": '.item', \"autoslide\": 10, // in second \"swipe\": false, \"enableKeyboard\": true } ); Members slider :Slider Controlled slider Type: Slider Methods destroy() Destroy the slider and its controls goTo(index [, $button]) Go to the asked slide or page Parameters: Name Type Argument Description index Number $button DOMElement &lt;optional&gt; Internal use Returns: Type Promise isEnabled() Check if the slider is enable or not Returns: Type Boolean next( [$button]) Go to the next slide or page Parameters: Name Type Argument Description $button DOMElement &lt;optional&gt; Internal use Returns: Type Promise previous( [$button]) Go to the previous slide or page Parameters: Name Type Argument Description $button DOMElement &lt;optional&gt; Internal use Returns: Type Promise × Search results Close Documentation generated by JSDoc 3.6.4 on 2020-07-28T16:49:10+02:00 using the DocStrap template. "}}
10
+ {"classes.list.html":{"id":"classes.list.html","title":"Classes","body":" Documentation Classes SliderSliderControls Events Slider#event:afterSlider#event:afterEachSlider#event:beforeSlider#event:beforeEachSlider#event:start Classes Classes Slider SliderControls Events after After starting to move. Only one time for the whole animation. Type: Object Properties: Name Type Description data SlideEventData_Params afterEach After each slide move. If moving for 3 slides, it will be called 3 times. Type: Object Properties: Name Type Description data SlideEventData_Params before Before starting to move. Only one time for the whole animation. Type: Object Properties: Name Type Description data SlideEventData_Params beforeEach Before each slide move. If moving for 3 slides, it will be called 3 times. Type: Object Properties: Name Type Description data SlideEventData_Params start On the initialization of the slider Type: Object Properties: Name Type Description data SlideEventData_Params Only currentSlide property × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:32+01:00 using the DocStrap template. "},"index.html":{"id":"index.html","title":"Index","body":" Documentation Classes SliderSliderControls Events Slider#event:afterSlider#event:afterEachSlider#event:beforeSlider#event:beforeEachSlider#event:start × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:32+01:00 using the DocStrap template. "},"Slider.html":{"id":"Slider.html","title":"Class: Slider","body":" Documentation Classes SliderSliderControls Events Slider#event:afterSlider#event:afterEachSlider#event:beforeSlider#event:beforeEachSlider#event:start Class: Slider Slider new Slider($slider [, userOptions]) Slider Parameters: Name Type Argument Description $slider HTMLElement userOptions Object &lt;optional&gt; Properties Name Type Argument Default Description startSlide Number &lt;optional&gt; 0 nbSlideVisibleBefore Number &lt;optional&gt; 0 nbSlideVisibleAfter Number &lt;optional&gt; 0 slidePerPage Number &lt;optional&gt; 1 moveByPage Boolean &lt;optional&gt; true speed Number &lt;optional&gt; 0.5 In second listSelector String &lt;optional&gt; .list itemsSelector String &lt;optional&gt; .item activeClass String &lt;optional&gt; active-slide loop Boolean &lt;optional&gt; true smoothHeight Boolean &lt;optional&gt; true onBefore Callback &lt;optional&gt; data =&gt; {} Called one time at the begining of the animation onBeforeEach Callback &lt;optional&gt; data =&gt; {} Called for every slide that will come in the 1st position during the animation onAfter Callback &lt;optional&gt; data =&gt; {} Called one time at the end of the animation onAfterEach Callback &lt;optional&gt; data =&gt; {} Called for every slide that is came in the 1st position during the animation onStart Callback &lt;optional&gt; data =&gt; {} Called one time at the initialisation of the slider options._setStyle function &lt;optional&gt; Internal function using GSAP to set CSS styles. Can be override to use another library options._tweenTo function &lt;optional&gt; Internal function using GSAP to tween element. Can be override to use another library options._tweenFromTo function &lt;optional&gt; Internal function using GSAP to initialize and tween element. Can be override to use another library options._killTweens function &lt;optional&gt; Internal function using GSAP to remove tweens from element. Can be override to use another library See: extra/modules/slider.md Example let slider = new Slider( $slider, options ); promise = slider.previous(); Members $list :HTMLElement Wrapper of the slides Type: HTMLElement $slider :HTMLElement The DOM element of the slider Type: HTMLElement $slides :Array.&lt;HTMLElement&gt; All slides Type: Array.&lt;HTMLElement&gt; bulletCount :Number Number of bullet needed in a pager Type: Number pageCount :Number Number of pages (can have several slides by page) Type: Number slideCount :Number Number of slides Type: Number Methods destroy() Remove all events, css class or inline styles getCurrentSlide() Get the current active slide Returns: Type Slide getSlide(index) Get a slide in function of an index Parameters: Name Type Description index Number Returns: Type Slide goTo(page [, $button]) Go to the asked slide or page Parameters: Name Type Argument Description page Number $button HTMLElement &lt;optional&gt; Internal use only Returns: Type Promise isEnabled() Check if the slider is enable or not Returns: Type Boolean next( [$button]) Go to the next slide or page Parameters: Name Type Argument Description $button HTMLElement &lt;optional&gt; Internal use only Returns: Type Promise previous( [$button]) Go to the previous slide or page Parameters: Name Type Argument Description $button HTMLElement &lt;optional&gt; Internal use only Returns: Type Promise Type Definitions Slide Type: object Properties: Name Type Description $slide HTMLElement id String delay Number In seconds index Number position Number (= index + 1) isFirst Boolean isLast Boolean isVisible Boolean isActive Boolean SlideEventData_Params Type: Object Properties: Name Type Description targetSlide Slide currentSlide Slide direction Number 1 = next, -1 = previous Events after After starting to move. Only one time for the whole animation. Type: Object Properties: Name Type Description data SlideEventData_Params afterEach After each slide move. If moving for 3 slides, it will be called 3 times. Type: Object Properties: Name Type Description data SlideEventData_Params before Before starting to move. Only one time for the whole animation. Type: Object Properties: Name Type Description data SlideEventData_Params beforeEach Before each slide move. If moving for 3 slides, it will be called 3 times. Type: Object Properties: Name Type Description data SlideEventData_Params start On the initialization of the slider Type: Object Properties: Name Type Description data SlideEventData_Params Only currentSlide property × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:32+01:00 using the DocStrap template. "},"SliderControls.html":{"id":"SliderControls.html","title":"Class: SliderControls","body":" Documentation Classes SliderSliderControls Events Slider#event:afterSlider#event:afterEachSlider#event:beforeSlider#event:beforeEachSlider#event:start Class: SliderControls SliderControls new SliderControls(slider, userOptions) Controls of a slider Parameters: Name Type Description slider Slider userOptions Object Properties Name Type Argument Default Description $btPrev HTMLElement &lt;optional&gt; $btNext HTMLElement &lt;optional&gt; $pagination HTMLElement &lt;optional&gt; paginationItems String &lt;optional&gt; autoslide Number &lt;optional&gt; In second swipe Boolean &lt;optional&gt; false enableKeyboard Boolean &lt;optional&gt; false gestureOptions Object &lt;optional&gt; See gesture module options See: extra/modules/slider.md Example let controls = new SliderControls( slider, { \"$btPrev\": $previousButtton, \"$btNext\": $nextButton, \"$pagination\": $pagination, \"paginationItems\": '.item', \"autoslide\": 10, // in second \"swipe\": false, \"enableKeyboard\": true, \"gestureOptions\": Object } ); Members slider :Slider Controlled slider Type: Slider Methods destroy() Destroy the slider and its controls goTo(index [, $button]) Go to the asked slide or page Parameters: Name Type Argument Description index Number $button DOMElement &lt;optional&gt; Internal use Returns: Type Promise isEnabled() Check if the slider is enable or not Returns: Type Boolean next( [$button]) Go to the next slide or page Parameters: Name Type Argument Description $button DOMElement &lt;optional&gt; Internal use Returns: Type Promise previous( [$button]) Go to the previous slide or page Parameters: Name Type Argument Description $button DOMElement &lt;optional&gt; Internal use Returns: Type Promise startAutoslide() Start the autoslide startAutoslide() Stop the autoslide × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:32+01:00 using the DocStrap template. "}}
11
11
  </script>
12
12
 
13
13
  <script type="text/javascript">
@@ -1208,7 +1208,7 @@ If the tabs are displayed vertically, add aria-orientation=&quot;vertical&quot;
1208
1208
  <span class="jsdoc-message">
1209
1209
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
1210
1210
 
1211
- on 2020-07-28T16:49:09+02:00
1211
+ on 2021-02-03T15:24:31+01:00
1212
1212
 
1213
1213
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
1214
1214
  </span>
@@ -195,7 +195,7 @@
195
195
  <span class="jsdoc-message">
196
196
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
197
197
 
198
- on 2020-07-28T16:49:09+02:00
198
+ on 2021-02-03T15:24:31+01:00
199
199
 
200
200
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
201
201
  </span>
@@ -128,7 +128,7 @@
128
128
  <span class="jsdoc-message">
129
129
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
130
130
 
131
- on 2020-07-28T16:49:09+02:00
131
+ on 2021-02-03T15:24:31+01:00
132
132
 
133
133
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
134
134
  </span>
@@ -7,7 +7,7 @@
7
7
  <script src="scripts/fulltext-search.js"></script>
8
8
 
9
9
  <script type="text/x-docstrap-searchdb">
10
- {"classes.list.html":{"id":"classes.list.html","title":"Classes","body":" Documentation Classes Tabs Classes Classes Tabs × Search results Close Documentation generated by JSDoc 3.6.4 on 2020-07-28T16:49:09+02:00 using the DocStrap template. "},"index.html":{"id":"index.html","title":"Index","body":" Documentation Classes Tabs × Search results Close Documentation generated by JSDoc 3.6.4 on 2020-07-28T16:49:09+02:00 using the DocStrap template. "},"Tabs.html":{"id":"Tabs.html","title":"Class: Tabs","body":" Documentation Classes Tabs Class: Tabs Tabs new Tabs($tabsWrapper [, userOptions]) Tabs Parameters: Name Type Argument Description $tabsWrapper HTMLElement userOptions Object &lt;optional&gt; Properties Name Type Argument Default Description tabSelector String &lt;optional&gt; 'li[aria-selected]' onOpenAtStart Tabs_callback &lt;optional&gt; onOpen Tabs_callback &lt;optional&gt; onClose Tabs_callback &lt;optional&gt; animations Object &lt;optional&gt; Properties Name Type Argument Description open Tabs_animation &lt;optional&gt; close Tabs_animation &lt;optional&gt; destroy Tabs_animation &lt;optional&gt; Example new Tabs( document.querySelector( '.tabs' ), { \"tabSelector\": \".tab\", \"animations\": { \"open\": function( $tab, $panel ) { aClass( [ $tab, $panel ], 'on' ); return Promise.resolve(); }, \"close\": function( $tab, $panel ) { rClass( [ $tab, $panel ], 'on' ); return Promise.resolve(); }, \"destroy\": function( $tab, $panel ) { rClass( [ $tab, $panel ], 'on' ); return Promise.resolve(); } }, \"onOpenAtStart\": function( $tab, $panel ) { console.log( 'open: ', $tab, $panel ); }, \"onOpen\": function( $tab, $panel ) { console.log( 'open: ', $tab, $panel ); }, \"onClose\": function( $tab, $panel ) { console.log( 'close: ', $tab, $panel ); } } ); HTML: &lt;div class=\"tabs\"&gt; &lt;ul role=\"tablist\"&gt; &lt;li role=\"tab\" id=\"tab-1\" tabindex=\"-1\" aria-selected=\"false\" aria-controls=\"panel-1\"&gt;Tab 1&lt;/li&gt; &lt;li role=\"tab\" id=\"tab-2\" tabindex=\"0\" aria-selected=\"true\" aria-controls=\"panel-2\"&gt;Tab 2&lt;/li&gt; &lt;li role=\"tab\" id=\"tab-3\" tabindex=\"-1\" aria-selected=\"false\" aria-controls=\"panel-3\"&gt;Tab 3&lt;/li&gt; &lt;li role=\"tab\" id=\"tab-4\" tabindex=\"-1\" aria-selected=\"false\" aria-controls=\"panel-4\"&gt;Tab 4&lt;/li&gt; &lt;/ul&gt; &lt;div role=\"tabpanel\" id=\"panel-1\" aria-labelledby=\"tab-1\" tabindex=\"0\"&gt; [Content 1] &lt;/div&gt; &lt;div role=\"tabpanel\" id=\"panel-2\" aria-labelledby=\"tab-2\" tabindex=\"0\"&gt; [Content 2 (displayed at start)] &lt;/div&gt; &lt;div role=\"tabpanel\" id=\"panel-3\" aria-labelledby=\"tab-3\" tabindex=\"0\"&gt; [Content 3] &lt;/div&gt; &lt;div role=\"tabpanel\" id=\"panel-4\" aria-labelledby=\"tab-4\" tabindex=\"0\"&gt; [Content 4] &lt;/div&gt; &lt;/div&gt; Set aria-selected to \"true\" and tabindex=\"0\" on the tab you want open at start. If the tabs are displayed vertically, add aria-orientation=\"vertical\" on the role=\"tablist\" element Methods destroy() Remove all events, css class, ... update() Restart the module Type Definitions Tabs_animation($tab, $panel) Parameters: Name Type Description $tab HTMLElement $panel HTMLElement Returns: Type Promise Tabs_callback($tab, $panel) Parameters: Name Type Description $tab HTMLElement $panel HTMLElement × Search results Close Documentation generated by JSDoc 3.6.4 on 2020-07-28T16:49:09+02:00 using the DocStrap template. "}}
10
+ {"classes.list.html":{"id":"classes.list.html","title":"Classes","body":" Documentation Classes Tabs Classes Classes Tabs × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:31+01:00 using the DocStrap template. "},"index.html":{"id":"index.html","title":"Index","body":" Documentation Classes Tabs × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:31+01:00 using the DocStrap template. "},"Tabs.html":{"id":"Tabs.html","title":"Class: Tabs","body":" Documentation Classes Tabs Class: Tabs Tabs new Tabs($tabsWrapper [, userOptions]) Tabs Parameters: Name Type Argument Description $tabsWrapper HTMLElement userOptions Object &lt;optional&gt; Properties Name Type Argument Default Description tabSelector String &lt;optional&gt; 'li[aria-selected]' onOpenAtStart Tabs_callback &lt;optional&gt; onOpen Tabs_callback &lt;optional&gt; onClose Tabs_callback &lt;optional&gt; animations Object &lt;optional&gt; Properties Name Type Argument Description open Tabs_animation &lt;optional&gt; close Tabs_animation &lt;optional&gt; destroy Tabs_animation &lt;optional&gt; Example new Tabs( document.querySelector( '.tabs' ), { \"tabSelector\": \".tab\", \"animations\": { \"open\": function( $tab, $panel ) { aClass( [ $tab, $panel ], 'on' ); return Promise.resolve(); }, \"close\": function( $tab, $panel ) { rClass( [ $tab, $panel ], 'on' ); return Promise.resolve(); }, \"destroy\": function( $tab, $panel ) { rClass( [ $tab, $panel ], 'on' ); return Promise.resolve(); } }, \"onOpenAtStart\": function( $tab, $panel ) { console.log( 'open: ', $tab, $panel ); }, \"onOpen\": function( $tab, $panel ) { console.log( 'open: ', $tab, $panel ); }, \"onClose\": function( $tab, $panel ) { console.log( 'close: ', $tab, $panel ); } } ); HTML: &lt;div class=\"tabs\"&gt; &lt;ul role=\"tablist\"&gt; &lt;li role=\"tab\" id=\"tab-1\" tabindex=\"-1\" aria-selected=\"false\" aria-controls=\"panel-1\"&gt;Tab 1&lt;/li&gt; &lt;li role=\"tab\" id=\"tab-2\" tabindex=\"0\" aria-selected=\"true\" aria-controls=\"panel-2\"&gt;Tab 2&lt;/li&gt; &lt;li role=\"tab\" id=\"tab-3\" tabindex=\"-1\" aria-selected=\"false\" aria-controls=\"panel-3\"&gt;Tab 3&lt;/li&gt; &lt;li role=\"tab\" id=\"tab-4\" tabindex=\"-1\" aria-selected=\"false\" aria-controls=\"panel-4\"&gt;Tab 4&lt;/li&gt; &lt;/ul&gt; &lt;div role=\"tabpanel\" id=\"panel-1\" aria-labelledby=\"tab-1\" tabindex=\"0\"&gt; [Content 1] &lt;/div&gt; &lt;div role=\"tabpanel\" id=\"panel-2\" aria-labelledby=\"tab-2\" tabindex=\"0\"&gt; [Content 2 (displayed at start)] &lt;/div&gt; &lt;div role=\"tabpanel\" id=\"panel-3\" aria-labelledby=\"tab-3\" tabindex=\"0\"&gt; [Content 3] &lt;/div&gt; &lt;div role=\"tabpanel\" id=\"panel-4\" aria-labelledby=\"tab-4\" tabindex=\"0\"&gt; [Content 4] &lt;/div&gt; &lt;/div&gt; Set aria-selected to \"true\" and tabindex=\"0\" on the tab you want open at start. If the tabs are displayed vertically, add aria-orientation=\"vertical\" on the role=\"tablist\" element Methods destroy() Remove all events, css class, ... update() Restart the module Type Definitions Tabs_animation($tab, $panel) Parameters: Name Type Description $tab HTMLElement $panel HTMLElement Returns: Type Promise Tabs_callback($tab, $panel) Parameters: Name Type Description $tab HTMLElement $panel HTMLElement × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:31+01:00 using the DocStrap template. "}}
11
11
  </script>
12
12
 
13
13
  <script type="text/javascript">
@@ -2162,7 +2162,7 @@ on( $form, {
2162
2162
  <span class="jsdoc-message">
2163
2163
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
2164
2164
 
2165
- on 2020-07-28T16:49:11+02:00
2165
+ on 2021-02-03T15:24:32+01:00
2166
2166
 
2167
2167
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
2168
2168
  </span>
@@ -202,7 +202,7 @@
202
202
  <span class="jsdoc-message">
203
203
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
204
204
 
205
- on 2020-07-28T16:49:10+02:00
205
+ on 2021-02-03T15:24:32+01:00
206
206
 
207
207
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
208
208
  </span>
@@ -2955,7 +2955,7 @@ Use a fallback for browser that doesn't support new URLSearchParams( formData ).
2955
2955
  <span class="jsdoc-message">
2956
2956
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
2957
2957
 
2958
- on 2020-07-28T16:49:10+02:00
2958
+ on 2021-02-03T15:24:32+01:00
2959
2959
 
2960
2960
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
2961
2961
  </span>
@@ -135,7 +135,7 @@
135
135
  <span class="jsdoc-message">
136
136
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
137
137
 
138
- on 2020-07-28T16:49:11+02:00
138
+ on 2021-02-03T15:24:32+01:00
139
139
 
140
140
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
141
141
  </span>