1 | export interface ManipulationMethods {
|
2 | /**
|
3 | * Add new slides to the end. slides could be
|
4 | * HTMLElement or HTML string with new slide or
|
5 | * array with such slides, for example:
|
6 | *
|
7 | * @example
|
8 | * ```js
|
9 | * appendSlide('<div class="swiper-slide">Slide 10"</div>')
|
10 | *
|
11 | * appendSlide([
|
12 | * '<div class="swiper-slide">Slide 10"</div>',
|
13 | * '<div class="swiper-slide">Slide 11"</div>'
|
14 | * ]);
|
15 | * ```
|
16 | */
|
17 | appendSlide(slides: HTMLElement | string | string[] | HTMLElement[]): void;
|
18 |
|
19 | /**
|
20 | * Add new slides to the beginning. slides could be
|
21 | * HTMLElement or HTML string with new slide or array with such slides, for example:
|
22 | *
|
23 | * @example
|
24 | * ```js
|
25 | * prependSlide('<div class="swiper-slide">Slide 0"</div>')
|
26 | *
|
27 | * prependSlide([
|
28 | * '<div class="swiper-slide">Slide 1"</div>',
|
29 | * '<div class="swiper-slide">Slide 2"</div>'
|
30 | * ]);
|
31 | * ```
|
32 | */
|
33 | prependSlide(slides: HTMLElement | string | string[] | HTMLElement[]): void;
|
34 |
|
35 | /**
|
36 | * Add new slides to the required index. slides could be HTMLElement or HTML string with new slide or array with such slides, for example:
|
37 | *
|
38 | * @example
|
39 | * ```js
|
40 | * addSlide(1, '<div class="swiper-slide">Slide 10"</div>')
|
41 | *
|
42 | * addSlide(1, [
|
43 | * '<div class="swiper-slide">Slide 10"</div>',
|
44 | * '<div class="swiper-slide">Slide 11"</div>'
|
45 | * ]);
|
46 | * ```
|
47 | */
|
48 | addSlide(index: number, slides: HTMLElement | string | string[] | HTMLElement[]): void;
|
49 |
|
50 | /**
|
51 | * Remove selected slides. slideIndex could be a number with slide index to remove or array with indexes.
|
52 | *
|
53 | * @example
|
54 | * ```js
|
55 | * removeSlide(0); // remove first slide
|
56 | * removeSlide([0, 1]); // remove first and second slides
|
57 | * removeAllSlides(); // Remove all slides
|
58 | * ```
|
59 | */
|
60 | removeSlide(slideIndex: number | number[]): void;
|
61 |
|
62 | /**
|
63 | * Remove all slides
|
64 | */
|
65 | removeAllSlides(): void;
|
66 | }
|
67 |
|
68 | export interface ManipulationEvents {}
|
69 |
|
70 | export interface ManipulationOptions {}
|