You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`activeSlideIndex`|`number`| Index of the currently active slide. |`0`| ✗ |
43
43
|`activeSlide`|`WebwriterSlide`| The active slide element based on the activeSlideIndex. | - | ✗ |
44
-
| `type` (`type`) | `'tabs' \| 'slides'` | Defines the type of view for the slideshow.
45
-
- "slides": Show content as sequential slides.
46
-
- "tabs": Show content using tabs. | `'slides'` | ✓ |
44
+
|`type` (`type`) |`'tabs' \| 'slides'`| Defines the type of view for the slideshow.<br>- "slides": Show content as sequential slides.<br>- "tabs": Show content using tabs. |`'slides'`| ✓ |
47
45
|`hasNextSlide`|`boolean`| False if slideshow is on the last slide. | - | ✗ |
48
46
|`hasPreviousSlide`|`boolean`| False if slideshow is on the first slide. | - | ✗ |
49
47
@@ -52,9 +50,7 @@ npm install @webwriter/slides
52
50
## Methods
53
51
| Name | Description | Parameters |
54
52
| :--: | :---------: | :-------: |
55
-
| `_handleKeyDown` | Handles keyboard navigation for the slideshow.
56
-
ArrowRight advances to the next slide, ArrowLeft goes back.
57
-
Only possible in preview mode. | `e: KeyboardEvent`
53
+
| `_handleKeyDown` | Handles keyboard navigation for the slideshow.<br>ArrowRight advances to the next slide, ArrowLeft goes back.<br>Only possible in preview mode. | `e: KeyboardEvent`
58
54
| `addSlide` | Add a new empty slide element. Optionally insert after given index. | `index: number`
59
55
| `duplicateSlide` | Duplicate an existing slide at given index. | `index: number`
60
56
| `removeActiveSlide` | Remove the currently active slide element. | -
@@ -110,8 +106,7 @@ npm install @webwriter/slides
110
106
| Name (Attribute Name) | Type | Description | Default | Reflects |
|`active` (`active`) |`boolean`| Indicates whether the slide is currently active/visible. |`false`| ✓ |
113
-
| `thumbnail` (`thumbnail`) | `string` | Data URI string for the slide thumbnail (e.g., "data:image/png;base64,...").
114
-
Used to display a preview image for the slide. | `""` | ✓ |
109
+
|`thumbnail` (`thumbnail`) |`string`| Data URI string for the slide thumbnail (e.g., "data:image/png;base64,...").<br>Used to display a preview image for the slide. |`""`| ✓ |
115
110
116
111
*Fields including [properties](https://developer.mozilla.org/en-US/docs/Glossary/Property/JavaScript) and [attributes](https://developer.mozilla.org/en-US/docs/Glossary/Attribute) define the current state of the widget and offer customization options.*
0 commit comments