Skip to content

Commit

Permalink
feat(core): makeeventPrefix parameter default to swiper
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Sep 19, 2023
1 parent 96e5166 commit 88d463a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/core/defaults.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default {
resizeObserver: true,
nested: false,
createElements: false,
eventsPrefix: 'swiper',
enabled: true,
focusableElements: 'input, select, option, textarea, button, video, label',

Expand Down
7 changes: 7 additions & 0 deletions src/types/swiper-options.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,13 @@ export interface SwiperOptions {
*/
createElements?: boolean;

/**
* Event name prefix for all DOM events emitted by Swiper Element (web component)
*
* @default `swiper`
*/
eventsPrefix?: boolean;

This comment has been minimized.

Copy link
@zarko-tg

zarko-tg Oct 24, 2023

You probably want this as a string, not boolean.
Ver. 11 fails compilation/building for us.


/**
* CSS selector for focusable elements. Swiping will be disabled on such elements if they are "focused"
*
Expand Down

0 comments on commit 88d463a

Please sign in to comment.