thumbs.d.ts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import Swiper from '../swiper-class';
  2. export interface ThumbsMethods {
  3. /**
  4. * Swiper instance of thumbs swiper
  5. */
  6. swiper: Swiper;
  7. /**
  8. * Update thumbs
  9. */
  10. update(initial: boolean): void;
  11. /**
  12. * Initialize thumbs
  13. */
  14. init(): boolean;
  15. }
  16. export interface ThumbsEvents {}
  17. export interface ThumbsOptions {
  18. /**
  19. * Swiper instance of swiper used as thumbs or object with Swiper parameters to initialize thumbs swiper
  20. *
  21. * @default null
  22. */
  23. swiper?: Swiper | null;
  24. /**
  25. * Additional class that will be added to activated thumbs swiper slide
  26. *
  27. * @default 'swiper-slide-thumb-active'
  28. */
  29. slideThumbActiveClass?: string;
  30. /**
  31. * Additional class that will be added to thumbs swiper
  32. *
  33. * @default 'swiper-thumbs'
  34. */
  35. thumbsContainerClass?: string;
  36. /**
  37. * When enabled multiple thumbnail slides may get activated
  38. *
  39. * @default true
  40. */
  41. multipleActiveThumbs?: boolean;
  42. /**
  43. * Allows to set on which thumbs active slide from edge it should automatically move scroll thumbs. For example, if set to 1 and last visible thumb will be activated (1 from edge) it will auto scroll thumbs
  44. *
  45. * @default 0
  46. */
  47. autoScrollOffset?: number;
  48. }