Skip to content

Commit 4b80400

Browse files
authored
2.4.0 (#447)
- Fix for #434 (onItemSelected does not work as expected) - Support for rendering HTML directly on the timeline cards (#443 ) - New prop `disableRendering` to disable all interactions with the timeline (#294) - New prop `highlightCardsOnHover` that highlights cards on hover
1 parent 4a6dd15 commit 4b80400

File tree

118 files changed

+1981
-37267
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+1981
-37267
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,16 +164,19 @@ Below are the available configuration options for the component:
164164
| contentDetailsHeight | 150 | Controls the height of the details section if using cardDetailedText. Refer to [TimelineItem model](#timeline-item-model) for more info. |
165165
| disableAutoScrollOnClick | false | Prevents auto-scrolling when a timeline card is clicked. |
166166
| disableClickOnCircle | false | Disables the click action on circular points. |
167+
| disableInteraction | false | Disables all the interactions with the Timeline. |
167168
| disableNavOnKey | false | Turns off keyboard navigation. |
169+
| disableTimelinePoint | false | Disables the timeline point in both `HORIZONTAL` and `VERTICAL` mode. |
168170
| enableBreakPoint | true | Automatically switches to vertical mode when the vertical breakpoint is reached. |
169171
| enableDarkToggle | false | Adds a toggle switch for dark mode. |
170172
| enableOutline | false | Enables an outline menu in vertical and vertical alternating modes. |
171173
| flipLayout | false | Reverses the layout (Right to Left). |
172174
| focusActiveItemOnLoad | false | Automatically scrolls to and focuses on the `activeItemIndex` when loading. |
173175
| fontSizes | | Allows customization of font sizes. |
174176
| hideControls | false | Hides navigation controls. |
175-
| itemWidth | 300 | Sets the width of the timeline section in horizontal mode. |
177+
| highlightCardsOnHover | false | Highlights the card on hover |
176178
| items | [] | A collection of Timeline Item Models. |
179+
| itemWidth | 300 | Sets the width of the timeline section in horizontal mode. |
177180
| lineWidth | 3px | Adjusts the width of the timeline track line. |
178181
| mediaHeight | 200 | Sets the minimum height for media elements like images or videos in the card. |
179182
| mediaSettings | | Configures settings specific to media layout. Refer to [mediaSettings](#media-settings) for more info. |
@@ -183,6 +186,7 @@ Below are the available configuration options for the component:
183186
| onItemSelected | | Invokes a callback on item selection, passing relevant data. |
184187
| onScrollEnd | | Detects the end of the timeline via `onScrollEnd`. |
185188
| onThemeChange | | Invokes a callback when the theme changes, triggered via `enableDarkToggle`. |
189+
| parseDetailsAsHTML | false | Parses the `cardDetailedText` as HTML. |
186190
| scrollable | true | Makes the timeline scrollable in `VERTICAL` and `VERTICAL_ALTERNATING` modes. |
187191
| showAllCardsHorizontal | false | Displays all cards in horizontal mode. By default, only the active card is shown. |
188192
| slideItemDuration | 5000 | Sets the duration (in milliseconds) that a timeline card is active during a slideshow. |
@@ -195,7 +199,6 @@ Below are the available configuration options for the component:
195199
| uniqueId | | Used with `noUniqueId` to set a custom unique id for the wrapper. |
196200
| useReadMore | true | Enables or disables the "read more" button. Available if text content on the card is taller than the card itself. |
197201
| verticalBreakPoint | 768px | Sets the pixel count below which the timeline will switch to `VERTICAL` mode. |
198-
| disableTimelinePoint | false | Disables the timeline point in both `HORIZONTAL` and `VERTICAL` mode. |
199202

200203
### Mode
201204

0 commit comments

Comments
 (0)