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

Bring items on a page that are not visible into view #1286

Closed
fakehumanguy opened this issue Oct 25, 2019 · 0 comments · Fixed by #1287
Closed

Bring items on a page that are not visible into view #1286

fakehumanguy opened this issue Oct 25, 2019 · 0 comments · Fixed by #1287
Labels
enhancement New feature or request
Milestone

Comments

@fakehumanguy
Copy link

Is your Enhancement request related to a problem?

Currently there is no way of controlling what section of a page is visible to the end user. If you have multiple elements on a page and one of them are updated when the end user interacts with the page in some way. There is no way to jump or make the element that gets updated visible to the end user.

Describe the solution you'd like

It would be great if you could have the option of supplying Select-UDElement with an ID of a target element. Then when Select-UDElement is called it would bring the target element into view of the end user. I would like to be able to target New-UDCard, New-UDTable, New-UDGrid, and New-UDInput as the target elements that could be used.

Example: Select-UDElement -ID 'UDCard1' -view

Describe how this would improve your Universal Dashboard Quality of Life

This would improve the experience of my end users. Currently I have a dashboard where the end user performs a search and then chooses an object returned from their search. When they select an object it then updates information on a table that is lower down on the page and not visible. If the end user doesn't know they have to scroll down to the bottom of the page to see the table that gets updated then it seems as if nothing happens or that the dashboard did not work correctly.

Describe alternatives you've considered

I have attempted to make the following code work but was unsuccessful.
New-UDElement -Tag script -Attributes @{type="application/javascript"} -Content {
@"
var elmnt = document.getElementById("content");
elmnt.scrollIntoView();
"@ }

Additional context

Add any other context or screenshots about the Enhancement request here.
https://forums.universaldashboard.io/t/autofocus-on-input-fields-and-buttons/1364/17

@fakehumanguy fakehumanguy added the enhancement New feature or request label Oct 25, 2019
@adamdriscoll adamdriscoll added this to the 2.7.0 milestone Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants
@adamdriscoll @fakehumanguy and others