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

Changing focus to another row in RepeatingGroup #2949

Open
xmrsa opened this issue Jan 27, 2025 · 1 comment
Open

Changing focus to another row in RepeatingGroup #2949

xmrsa opened this issue Jan 27, 2025 · 1 comment
Labels

Comments

@xmrsa
Copy link

xmrsa commented Jan 27, 2025

Description

(Åpne rad og skifte fokus i repeterende tabell)

I would like to be able to change which row has focus/is open, f.ex. after pushing a button. In my use-case I have a custom button on each row that creates a new row at the bottom of the repeating group with a copy of elements from the active row. As a user I would have expected that I would be moved to the first element on the new (partially copied) row . Otherwise it is easy to think that the button is not doing what it is supposed to since you don't necessarily notice a collapsed row at the bottom (especially if you have a long repeating group). Being able to change the focus with code (automatically open another row, and perhaps closing the one you came from) would fix this problem.

Image

@xmrsa xmrsa added the kind/feature-request New feature or request label Jan 27, 2025
@ivarne ivarne transferred this issue from Altinn/altinn-studio Jan 27, 2025
@ivarne ivarne removed this from Team Studio Jan 27, 2025
@ivarne
Copy link
Member

ivarne commented Jan 27, 2025

Spennende use case. Absolutt enig i at det gir mening i at en userAction (og dataProcessor? og kanskje validator?) skal kunne fortelle hvor neste fokus skal være etterpå. Tror vi har mye riktig for å kunne støtte dette, men vi mangler mulighet for å fortelle hvilken rad som er åpen. Jeg ser for meg at vi kan utvide IInstanceDataMutator med en Focus(string componentId, params Guid[] AltinnRowId) eller tilsvarende også kan frontend flytte fokus dit.

Vi oppretter backend issue når vi har gjort refinement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants