Skip to content

Commit

Permalink
Merge pull request #7014 from laylatichy/add-count-to-timeline-context
Browse files Browse the repository at this point in the history
fix(timeline): add count property to TimelineContext
  • Loading branch information
tugcekucukoglu authored Dec 27, 2024
2 parents d1c4e34 + b0e6e09 commit 92a964a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/primevue/src/timeline/Timeline.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ export interface TimelineContext {
* Current index of the item as a number.
*/
index: number;

/**
* Total number of items in the timeline.
*/
count: number;
}

/**
Expand Down

0 comments on commit 92a964a

Please sign in to comment.