-
Notifications
You must be signed in to change notification settings - Fork 38
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
Context/right-click menu #2157
Comments
Hey @GerardasB, can you clarify the first use-case? The menu in your screenshot looks like a regular |
Yes, that's just one of the use cases of how our current |
Hi, we recently removed |
@MartynasStrazdas There is no update on it right now. We want to take the time to do it right, and we currently do not have the bandwidth for it. However, what we can do in the meantime is expose a prop that allows changing the position of |
Hi, I am hereby adding an upvote to having a ContextMenu feature-equivalent component in iTwinUI. Thank you! |
Feature
AppUI team is deprecating
ContextMenu
from@itwin/core-react
storybookThis component was regularly used to render an action list and can be usually replaced by an
iTwinUI
DropdownMenu
i.e. saved views widget:Another use-case is when the menu is used as a contextual/right-click menu. Then it must be positioned without an explicitly visible target (i.e. following cursor), which
DropdownMenu
currently doesn't support out-of-the-box.For this use case, we had a separate component GlobalContextMenu.
Examples
Here's an example of how it could work with current iTwinUI components: stackblitz.
Feature-wise the context menu is very similar to the
DropdownMenu
since it usually contains actions and can be nested.The text was updated successfully, but these errors were encountered: