Gauravdarkslayer / ngx-stories

An Angular component to render instagram like stories.
https://ngx-stories.vercel.app
MIT License
1 stars 0 forks source link

💡 [REQUEST] - Add currentIndex feature for story navigation #27

Open Gauravdarkslayer opened 3 days ago

Gauravdarkslayer commented 3 days ago

Start Date

No response

Implementation PR

No response

Reference Issues

No response

Summary

Request to implement a currentIndex feature in the ngx-stories component, allowing users to control the current story being displayed. The feature should handle both scenarios:

1. Multiple Story Groups: Users can pass two properties, currentGroupIndex and currentStoryIndex , to navigate through stories within specific groups. 2. Single Story Group: Users can pass just a currentStoryIndex for simpler navigation when there is only one story group.

- Default values for both the properties should be 0th index

- This addition should support flexible navigation across stories and groups, while maintaining backward compatibility for existing use cases.

Basic Example

No response

Drawbacks

No response

Unresolved questions

No response

github-actions[bot] commented 3 days ago

Hey @Gauravdarkslayer, Thanks for contributing and Congrats on opening Issue :tada:

We will try to review as soon as possible and a maintainer will get back to you soon!