-
Notifications
You must be signed in to change notification settings - Fork 6
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 drop-down menu #443
Comments
I don't understand your problem. @stropitek ? |
for example, we have a table displaying a list of spectra and I need to do an operation in one of the spectra so to do that I right-click on the row and open a context menu. How I can pass the id of the spectrum to the context menu? |
The way I would implement it is that each row of the table uses its own |
Do see it is better than having custom attributes per row and using |
I don't really see any advantage of having a single menu for the whole table. |
Thanks, Michael, can you expose the |
But I think there is an advantage, we have a single drop-down context instead of having a drop-down menu in each table cell. |
That's a fact. But how is it an advantage? |
this happen because i need to set /* overflow: hidden; */ to ellipses the header |
I think the menu should be injected at the level of the table to avoid these style problem |
No, we should be using a Portal |
But you are using a react-science/src/components/dropdown-menu/DropdownMenu.tsx Lines 119 to 132 in 086f0b8
|
I don't know exactly, but there's definitely something wrong somewhere. If you could reproduce it in a story in this repo that would be perfect. |
i found the problem it is here react-science/src/components/dropdown-menu/DropdownMenu.tsx Lines 44 to 46 in 086f0b8
|
What's the problem? |
@targos check DropdownContextMenu component |
Could you make a fix (and a story that demonstrates it)? |
Fixed in v0.20.0. Thanks for the PR. |
@targos
I took a look at the context drop-down menu, it seems you design it for general use so we do not know anything about the element that the context menu opens over it.
let's assume I need to use it over a list or table I need to get the id or any other kind of data to use it once I press on the menu to do whatever I want.
maybe we could have a custom attributes
data-context = ""
The text was updated successfully, but these errors were encountered: