Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add goup active index and group navigation to panel api #1115

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

IzaacAyelin
Copy link
Collaborator

No description provided.

@IzaacAyelin IzaacAyelin requested a review from yhattav March 6, 2023 14:19
@@ -882,6 +882,9 @@ class SlideshowView extends React.Component {
getActiveItemIndex: () => {
return this.state.activeIndex;
},
getActiveGroupIndex: () => {
return this.getCenteredItemOrGroupIdxByScroll('groups');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would this be different than line 883?
Why isnt this a state? this calculation should not be triggered by request, but by change.

@@ -892,6 +895,20 @@ class SlideshowView extends React.Component {

this.props.actions.eventsListener(GALLERY_CONSTS.events.ITEM_ACTION_TRIGGERED, props, e);
},
scrollToGroupIndex: (idx) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When is this used? Please add a description on the PR.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding Group Active Index and Group Navigation to the Panel API would be a fantastic enhancement! This feature could streamline navigation and provide developers with better control over grouped components, ensuring a smoother user experience and more organized UI management.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants