controller.d.ts 857 B

1234567891011121314151617181920212223242526272829303132333435
  1. import Swiper from '../swiper-class';
  2. export interface ControllerMethods {
  3. /**
  4. * Pass here another Swiper instance or array with Swiper instances that should be controlled
  5. * by this Swiper
  6. */
  7. control?: Swiper | Swiper[];
  8. }
  9. export interface ControllerEvents {}
  10. export interface ControllerOptions {
  11. /**
  12. * Pass here another Swiper instance or array with Swiper instances that should be controlled
  13. * by this Swiper
  14. */
  15. control?: Swiper | Swiper[];
  16. /**
  17. * Set to `true` and controlling will be in inverse direction
  18. *
  19. * @default false
  20. */
  21. inverse?: boolean;
  22. /**
  23. * Defines a way how to control another slider: slide by slide
  24. * (with respect to other slider's grid) or depending on all slides/container
  25. * (depending on total slider percentage).
  26. *
  27. * @default 'slide'
  28. */
  29. by?: 'slide' | 'container';
  30. }