code
stringlengths
24
2.07M
docstring
stringlengths
25
85.3k
func_name
stringlengths
1
92
language
stringclasses
1 value
repo
stringlengths
5
64
path
stringlengths
4
172
url
stringlengths
44
218
license
stringclasses
7 values
function attachEvents() { const swiper = this; const document = getDocument(); const { params, support } = swiper; swiper.onTouchStart = onTouchStart.bind(swiper); swiper.onTouchMove = onTouchMove.bind(swiper); swiper.onTouchEnd = onTouchEnd.bind(swiper); ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
attachEvents
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function detachEvents() { const swiper = this; events(swiper, 'off'); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
detachEvents
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
isGridEnabled = (swiper, params) => { return swiper.grid && params.grid && params.grid.rows > 1; }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
isGridEnabled
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
isGridEnabled = (swiper, params) => { return swiper.grid && params.grid && params.grid.rows > 1; }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
isGridEnabled
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function setBreakpoint() { const swiper = this; const { activeIndex, initialized, loopedSlides = 0, params, $el } = swiper; const breakpoints = params.breakpoints; if (!breakpoints || breakpoints && Object.keys(breakpoints).length === 0) return; // G...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setBreakpoint
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function getBreakpoint(breakpoints, base, containerEl) { if (base === void 0) { base = 'window'; } if (!breakpoints || base === 'container' && !containerEl) return undefined; let breakpoint = false; const window = getWindow(); const currentHeight = base === 'window' ? window...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
getBreakpoint
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function prepareClasses(entries, prefix) { const resultClasses = []; entries.forEach(item => { if (typeof item === 'object') { Object.keys(item).forEach(classNames => { if (item[classNames]) { resultClasses.push(prefix + classNames); } }); ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
prepareClasses
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function addClasses() { const swiper = this; const { classNames, params, rtl, $el, device, support } = swiper; // prettier-ignore const suffixes = prepareClasses(['initialized', params.direction, { 'pointer-events': !support.touch },...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
addClasses
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function removeClasses() { const swiper = this; const { $el, classNames } = swiper; $el.removeClass(classNames.join(' ')); swiper.emitContainerClasses(); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
removeClasses
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function loadImage(imageEl, src, srcset, sizes, checkForComplete, callback) { const window = getWindow(); let image; function onReady() { if (callback) callback(); } const isPicture = $(imageEl).parent('picture')[0]; if (!isPicture && (!imageEl.complete || !checkForComplet...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
loadImage
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function onReady() { if (callback) callback(); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
onReady
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function preloadImages() { const swiper = this; swiper.imagesToLoad = swiper.$el.find('img'); function onReady() { if (typeof swiper === 'undefined' || swiper === null || !swiper || swiper.destroyed) return; if (swiper.imagesLoaded !== undefined) swiper.imagesLoaded += 1; if ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
preloadImages
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function onReady() { if (typeof swiper === 'undefined' || swiper === null || !swiper || swiper.destroyed) return; if (swiper.imagesLoaded !== undefined) swiper.imagesLoaded += 1; if (swiper.imagesLoaded === swiper.imagesToLoad.length) { if (swiper.params.updateOnImagesReady) swiper.up...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
onReady
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function checkOverflow() { const swiper = this; const { isLocked: wasLocked, params } = swiper; const { slidesOffsetBefore } = params; if (slidesOffsetBefore) { const lastSlideIndex = swiper.slides.length - 1; const lastSlideRightEdge = swiper...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
checkOverflow
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function moduleExtendParams(params, allModulesParams) { return function extendParams(obj) { if (obj === void 0) { obj = {}; } const moduleParamName = Object.keys(obj)[0]; const moduleParams = obj[moduleParamName]; if (typeof moduleParams !== 'object' || modulePa...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
moduleExtendParams
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
constructor() { let el; let params; for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } if (args.length === 1 && args[0].constructor && Object.prototype.toString.call(args[0]).slice(8, -1) === 'Obj...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
constructor
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
isHorizontal() { return swiper.params.direction === 'horizontal'; }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
isHorizontal
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
isVertical() { return swiper.params.direction === 'vertical'; }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
isVertical
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
enable() { const swiper = this; if (swiper.enabled) return; swiper.enabled = true; if (swiper.params.grabCursor) { swiper.setGrabCursor(); } swiper.emit('enable'); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
enable
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
disable() { const swiper = this; if (!swiper.enabled) return; swiper.enabled = false; if (swiper.params.grabCursor) { swiper.unsetGrabCursor(); } swiper.emit('disable'); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
disable
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
setProgress(progress, speed) { const swiper = this; progress = Math.min(Math.max(progress, 0), 1); const min = swiper.minTranslate(); const max = swiper.maxTranslate(); const current = (max - min) * progress + min; swiper.translateTo(current, typeof speed === 'undefined' ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setProgress
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
emitContainerClasses() { const swiper = this; if (!swiper.params._emitClasses || !swiper.el) return; const cls = swiper.el.className.split(' ').filter(className => { return className.indexOf('swiper') === 0 || className.indexOf(swiper.params.containerModifierClass) === 0; }); ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
emitContainerClasses
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
getSlideClasses(slideEl) { const swiper = this; if (swiper.destroyed) return ''; return slideEl.className.split(' ').filter(className => { return className.indexOf('swiper-slide') === 0 || className.indexOf(swiper.params.slideClass) === 0; }).join(' '); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
getSlideClasses
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
emitSlidesClasses() { const swiper = this; if (!swiper.params._emitClasses || !swiper.el) return; const updates = []; swiper.slides.each(slideEl => { const classNames = swiper.getSlideClasses(slideEl); updates.push({ slideEl, classNames ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
emitSlidesClasses
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
slidesPerViewDynamic(view, exact) { if (view === void 0) { view = 'current'; } if (exact === void 0) { exact = false; } const swiper = this; const { params, slides, slidesGrid, slidesSizesGrid, size: ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
slidesPerViewDynamic
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
update() { const swiper = this; if (!swiper || swiper.destroyed) return; const { snapGrid, params } = swiper; // Breakpoints if (params.breakpoints) { swiper.setBreakpoint(); } swiper.updateSize(); swiper.updateSlides(); ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
update
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function setTranslate() { const translateValue = swiper.rtlTranslate ? swiper.translate * -1 : swiper.translate; const newTranslate = Math.min(Math.max(translateValue, swiper.maxTranslate()), swiper.minTranslate()); swiper.setTranslate(newTranslate); swiper.updateActiveIndex(); ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTranslate
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
changeDirection(newDirection, needUpdate) { if (needUpdate === void 0) { needUpdate = true; } const swiper = this; const currentDirection = swiper.params.direction; if (!newDirection) { // eslint-disable-next-line newDirection = currentDirection ==...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
changeDirection
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
changeLanguageDirection(direction) { const swiper = this; if (swiper.rtl && direction === 'rtl' || !swiper.rtl && direction === 'ltr') return; swiper.rtl = direction === 'rtl'; swiper.rtlTranslate = swiper.params.direction === 'horizontal' && swiper.rtl; if (swiper.rtl) { ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
changeLanguageDirection
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
mount(el) { const swiper = this; if (swiper.mounted) return true; // Find el const $el = $(el || swiper.params.el); el = $el[0]; if (!el) { return false; } el.swiper = swiper; const getWrapperSelector = () => { return `.${(swiper.pa...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
mount
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
getWrapperSelector = () => { return `.${(swiper.params.wrapperClass || '').trim().split(' ').join('.')}`; }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
getWrapperSelector
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
getWrapperSelector = () => { return `.${(swiper.params.wrapperClass || '').trim().split(' ').join('.')}`; }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
getWrapperSelector
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
getWrapper = () => { if (el && el.shadowRoot && el.shadowRoot.querySelector) { const res = $(el.shadowRoot.querySelector(getWrapperSelector())); // Children needs to return slot items res.children = options => $el.children(options); return res; } if (...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
getWrapper
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
getWrapper = () => { if (el && el.shadowRoot && el.shadowRoot.querySelector) { const res = $(el.shadowRoot.querySelector(getWrapperSelector())); // Children needs to return slot items res.children = options => $el.children(options); return res; } if (...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
getWrapper
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
init(el) { const swiper = this; if (swiper.initialized) return swiper; const mounted = swiper.mount(el); if (mounted === false) return swiper; swiper.emit('beforeInit'); // Set breakpoint if (swiper.params.breakpoints) { swiper.setBreakpoint(); } // Add...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
init
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
destroy(deleteInstance, cleanStyles) { if (deleteInstance === void 0) { deleteInstance = true; } if (cleanStyles === void 0) { cleanStyles = true; } const swiper = this; const { params, $el, $wrapperEl, slides ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
destroy
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
static extendDefaults(newDefaults) { extend(extendedDefaults, newDefaults); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
extendDefaults
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
static get extendedDefaults() { return extendedDefaults; }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
extendedDefaults
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
static get defaults() { return defaults; }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
defaults
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
static installModule(mod) { if (!Swiper.prototype.__modules__) Swiper.prototype.__modules__ = []; const modules = Swiper.prototype.__modules__; if (typeof mod === 'function' && modules.indexOf(mod) < 0) { modules.push(mod); } }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
installModule
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
static use(module) { if (Array.isArray(module)) { module.forEach(m => Swiper.installModule(m)); return Swiper; } Swiper.installModule(module); return Swiper; }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
use
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function Virtual(_ref) { let { swiper, extendParams, on, emit } = _ref; extendParams({ virtual: { enabled: false, slides: [], cache: true, renderSlide: null, renderExternal: null, renderExternalUpdate: ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
Virtual
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function renderSlide(slide, index) { const params = swiper.params.virtual; if (params.cache && swiper.virtual.cache[index]) { return swiper.virtual.cache[index]; } const $slideEl = params.renderSlide ? $(params.renderSlide.call(swiper, slide, index)) : $(`<div class="${swiper...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
renderSlide
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function update(force) { const { slidesPerView, slidesPerGroup, centeredSlides } = swiper.params; const { addSlidesBefore, addSlidesAfter } = swiper.params.virtual; const { from: previousFrom, to: previousTo, ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
update
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function onRendered() { swiper.updateSlides(); swiper.updateProgress(); swiper.updateSlidesClasses(); if (swiper.lazy && swiper.params.lazy.enabled) { swiper.lazy.load(); } emit('virtualUpdate'); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
onRendered
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function appendSlide(slides) { if (typeof slides === 'object' && 'length' in slides) { for (let i = 0; i < slides.length; i += 1) { if (slides[i]) swiper.virtual.slides.push(slides[i]); } } else { swiper.virtual.slides.push(slides); } update(tru...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
appendSlide
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function prependSlide(slides) { const activeIndex = swiper.activeIndex; let newActiveIndex = activeIndex + 1; let numberOfNewSlides = 1; if (Array.isArray(slides)) { for (let i = 0; i < slides.length; i += 1) { if (slides[i]) swiper.virtual.slides.unshift(slides[i]...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
prependSlide
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function removeSlide(slidesIndexes) { if (typeof slidesIndexes === 'undefined' || slidesIndexes === null) return; let activeIndex = swiper.activeIndex; if (Array.isArray(slidesIndexes)) { for (let i = slidesIndexes.length - 1; i >= 0; i -= 1) { swiper.virtual.slides.splice...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
removeSlide
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function removeAllSlides() { swiper.virtual.slides = []; if (swiper.params.virtual.cache) { swiper.virtual.cache = {}; } update(true); swiper.slideTo(0, 0); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
removeAllSlides
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function Keyboard(_ref) { let { swiper, extendParams, on, emit } = _ref; const document = getDocument(); const window = getWindow(); swiper.keyboard = { enabled: false }; extendParams({ keyboard: { enabled: false, ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
Keyboard
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function handle(event) { if (!swiper.enabled) return; const { rtlTranslate: rtl } = swiper; let e = event; if (e.originalEvent) e = e.originalEvent; // jquery fix const kc = e.keyCode || e.charCode; const pageUpDown = swiper.params.keyboard.pageUpDown; ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
handle
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function enable() { if (swiper.keyboard.enabled) return; $(document).on('keydown', handle); swiper.keyboard.enabled = true; }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
enable
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function disable() { if (!swiper.keyboard.enabled) return; $(document).off('keydown', handle); swiper.keyboard.enabled = false; }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
disable
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function Mousewheel(_ref) { let { swiper, extendParams, on, emit } = _ref; const window = getWindow(); extendParams({ mousewheel: { enabled: false, releaseOnEdges: false, invert: false, forceToAxis: false, ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
Mousewheel
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function normalize(e) { // Reasonable defaults const PIXEL_STEP = 10; const LINE_HEIGHT = 40; const PAGE_HEIGHT = 800; let sX = 0; let sY = 0; // spinX, spinY let pX = 0; let pY = 0; // pixelX, pixelY // Legacy if ('detail' in e) { ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
normalize
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function handleMouseEnter() { if (!swiper.enabled) return; swiper.mouseEntered = true; }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
handleMouseEnter
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function handleMouseLeave() { if (!swiper.enabled) return; swiper.mouseEntered = false; }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
handleMouseLeave
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function animateSlider(newEvent) { if (swiper.params.mousewheel.thresholdDelta && newEvent.delta < swiper.params.mousewheel.thresholdDelta) { // Prevent if delta of wheel scroll delta is below configured threshold return false; } if (swiper.params.mousewheel.thresholdTime &&...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
animateSlider
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function releaseScroll(newEvent) { const params = swiper.params.mousewheel; if (newEvent.direction < 0) { if (swiper.isEnd && !swiper.params.loop && params.releaseOnEdges) { // Return true to animate scroll on edges return true; } } else if (swiper.is...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
releaseScroll
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function handle(event) { let e = event; let disableParentSwiper = true; if (!swiper.enabled) return; const params = swiper.params.mousewheel; if (swiper.params.cssMode) { e.preventDefault(); } let target = swiper.$el; if (swiper.params.mousewh...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
handle
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function events(method) { let target = swiper.$el; if (swiper.params.mousewheel.eventsTarget !== 'container') { target = $(swiper.params.mousewheel.eventsTarget); } target[method]('mouseenter', handleMouseEnter); target[method]('mouseleave', handleMouseLeave); ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
events
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function enable() { if (swiper.params.cssMode) { swiper.wrapperEl.removeEventListener('wheel', handle); return true; } if (swiper.mousewheel.enabled) return false; events('on'); swiper.mousewheel.enabled = true; return true; }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
enable
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function disable() { if (swiper.params.cssMode) { swiper.wrapperEl.addEventListener(event, handle); return true; } if (!swiper.mousewheel.enabled) return false; events('off'); swiper.mousewheel.enabled = false; return true; }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
disable
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function createElementIfNotDefined(swiper, originalParams, params, checkProps) { const document = getDocument(); if (swiper.params.createElements) { Object.keys(checkProps).forEach(key => { if (!params[key] && params.auto === true) { let element = swiper.$el.children(`.${check...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
createElementIfNotDefined
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function Navigation(_ref) { let { swiper, extendParams, on, emit } = _ref; extendParams({ navigation: { nextEl: null, prevEl: null, hideOnClick: false, disabledClass: 'swiper-button-disabled', hiddenClass: 'swipe...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
Navigation
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function getEl(el) { let $el; if (el) { $el = $(el); if (swiper.params.uniqueNavElements && typeof el === 'string' && $el.length > 1 && swiper.$el.find(el).length === 1) { $el = swiper.$el.find(el); } } return $el; }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
getEl
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function toggleEl($el, disabled) { const params = swiper.params.navigation; if ($el && $el.length > 0) { $el[disabled ? 'addClass' : 'removeClass'](params.disabledClass); if ($el[0] && $el[0].tagName === 'BUTTON') $el[0].disabled = disabled; if (swiper.params.watchOverflo...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
toggleEl
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function update() { // Update Navigation Buttons if (swiper.params.loop) return; const { $nextEl, $prevEl } = swiper.navigation; toggleEl($prevEl, swiper.isBeginning && !swiper.params.rewind); toggleEl($nextEl, swiper.isEnd && !swiper.params.rewind); ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
update
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function onPrevClick(e) { e.preventDefault(); if (swiper.isBeginning && !swiper.params.loop && !swiper.params.rewind) return; swiper.slidePrev(); emit('navigationPrev'); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
onPrevClick
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function onNextClick(e) { e.preventDefault(); if (swiper.isEnd && !swiper.params.loop && !swiper.params.rewind) return; swiper.slideNext(); emit('navigationNext'); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
onNextClick
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function init() { const params = swiper.params.navigation; swiper.params.navigation = createElementIfNotDefined(swiper, swiper.originalParams.navigation, swiper.params.navigation, { nextEl: 'swiper-button-next', prevEl: 'swiper-button-prev' }); if (!(params.nextEl || ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
init
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function destroy() { const { $nextEl, $prevEl } = swiper.navigation; if ($nextEl && $nextEl.length) { $nextEl.off('click', onNextClick); $nextEl.removeClass(swiper.params.navigation.disabledClass); } if ($prevEl && $prevEl.length) { ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
destroy
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
enable = () => { swiper.$el.removeClass(swiper.params.navigation.navigationDisabledClass); init(); update(); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
enable
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
enable = () => { swiper.$el.removeClass(swiper.params.navigation.navigationDisabledClass); init(); update(); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
enable
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
disable = () => { swiper.$el.addClass(swiper.params.navigation.navigationDisabledClass); destroy(); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
disable
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
disable = () => { swiper.$el.addClass(swiper.params.navigation.navigationDisabledClass); destroy(); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
disable
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function classesToSelector(classes) { if (classes === void 0) { classes = ''; } return `.${classes.trim().replace(/([\.:!\/])/g, '\\$1') // eslint-disable-line .replace(/ /g, '.')}`; }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
classesToSelector
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function Pagination(_ref) { let { swiper, extendParams, on, emit } = _ref; const pfx = 'swiper-pagination'; extendParams({ pagination: { el: null, bulletElement: 'span', clickable: false, hideOnClick: false, ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
Pagination
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function isPaginationDisabled() { return !swiper.params.pagination.el || !swiper.pagination.el || !swiper.pagination.$el || swiper.pagination.$el.length === 0; }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
isPaginationDisabled
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function setSideBullets($bulletEl, position) { const { bulletActiveClass } = swiper.params.pagination; $bulletEl[position]().addClass(`${bulletActiveClass}-${position}`)[position]().addClass(`${bulletActiveClass}-${position}-${position}`); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setSideBullets
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function update() { // Render || Update Pagination bullets/items const rtl = swiper.rtl; const params = swiper.params.pagination; if (isPaginationDisabled()) return; const slidesLength = swiper.virtual && swiper.params.virtual.enabled ? swiper.virtual.slides.length : swiper.slide...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
update
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function render() { // Render Container const params = swiper.params.pagination; if (isPaginationDisabled()) return; const slidesLength = swiper.virtual && swiper.params.virtual.enabled ? swiper.virtual.slides.length : swiper.slides.length; const $el = swiper.pagination.$el; ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
render
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function init() { swiper.params.pagination = createElementIfNotDefined(swiper, swiper.originalParams.pagination, swiper.params.pagination, { el: 'swiper-pagination' }); const params = swiper.params.pagination; if (!params.el) return; let $el = $(params.el); if (...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
init
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function destroy() { const params = swiper.params.pagination; if (isPaginationDisabled()) return; const $el = swiper.pagination.$el; $el.removeClass(params.hiddenClass); $el.removeClass(params.modifierClass + params.type); $el.removeClass(swiper.isHorizontal() ? params.ho...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
destroy
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
enable = () => { swiper.$el.removeClass(swiper.params.pagination.paginationDisabledClass); if (swiper.pagination.$el) { swiper.pagination.$el.removeClass(swiper.params.pagination.paginationDisabledClass); } init(); render(); update(); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
enable
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
enable = () => { swiper.$el.removeClass(swiper.params.pagination.paginationDisabledClass); if (swiper.pagination.$el) { swiper.pagination.$el.removeClass(swiper.params.pagination.paginationDisabledClass); } init(); render(); update(); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
enable
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
disable = () => { swiper.$el.addClass(swiper.params.pagination.paginationDisabledClass); if (swiper.pagination.$el) { swiper.pagination.$el.addClass(swiper.params.pagination.paginationDisabledClass); } destroy(); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
disable
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
disable = () => { swiper.$el.addClass(swiper.params.pagination.paginationDisabledClass); if (swiper.pagination.$el) { swiper.pagination.$el.addClass(swiper.params.pagination.paginationDisabledClass); } destroy(); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
disable
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function Scrollbar(_ref) { let { swiper, extendParams, on, emit } = _ref; const document = getDocument(); let isTouched = false; let timeout = null; let dragTimeout = null; let dragStartPos; let dragSize; let trackSize; let divi...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
Scrollbar
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function setTranslate() { if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return; const { scrollbar, rtlTranslate: rtl, progress } = swiper; const { $dragEl, $el } = scrollbar; const params = swiper.params.scrollb...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTranslate
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function setTransition(duration) { if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return; swiper.scrollbar.$dragEl.transition(duration); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTransition
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function updateSize() { if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return; const { scrollbar } = swiper; const { $dragEl, $el } = scrollbar; $dragEl[0].style.width = ''; $dragEl[0].style.height = ''; trackSize = ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
updateSize
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function getPointerPosition(e) { if (swiper.isHorizontal()) { return e.type === 'touchstart' || e.type === 'touchmove' ? e.targetTouches[0].clientX : e.clientX; } return e.type === 'touchstart' || e.type === 'touchmove' ? e.targetTouches[0].clientY : e.clientY; }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
getPointerPosition
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function setDragPosition(e) { const { scrollbar, rtlTranslate: rtl } = swiper; const { $el } = scrollbar; let positionRatio; positionRatio = (getPointerPosition(e) - $el.offset()[swiper.isHorizontal() ? 'left' : 'top'] - (dragStartPos !== nul...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setDragPosition
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function onDragStart(e) { const params = swiper.params.scrollbar; const { scrollbar, $wrapperEl } = swiper; const { $el, $dragEl } = scrollbar; isTouched = true; dragStartPos = e.target === $dragEl[0] || e.target === $dragEl...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
onDragStart
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function onDragMove(e) { const { scrollbar, $wrapperEl } = swiper; const { $el, $dragEl } = scrollbar; if (!isTouched) return; if (e.preventDefault) e.preventDefault();else e.returnValue = false; setDragPosition(e); ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
onDragMove
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function onDragEnd(e) { const params = swiper.params.scrollbar; const { scrollbar, $wrapperEl } = swiper; const { $el } = scrollbar; if (!isTouched) return; isTouched = false; if (swiper.params.cssMode) { swiper.$wr...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
onDragEnd
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function events(method) { const { scrollbar, touchEventsTouch, touchEventsDesktop, params, support } = swiper; const $el = scrollbar.$el; if (!$el) return; const target = $el[0]; const activeListener = support.passiveListe...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
events
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function enableDraggable() { if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return; events('on'); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
enableDraggable
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function disableDraggable() { if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return; events('off'); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
disableDraggable
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT