-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
MenuItem grouping Still not available #17125
Labels
duplicate
This issue or pull request already exists
Comments
@M4urici0GM Could you link it, or even better follow our issue template? What are you looking for? I'm clueless. Are interested in something like this? import React from 'react';
import Button from '@material-ui/core/Button';
import Menu from '@material-ui/core/Menu';
import ListSubheader from '@material-ui/core/ListSubheader';
import MenuItem from '@material-ui/core/MenuItem';
import Divider from '@material-ui/core/Divider';
export default function SimpleMenu() {
const [anchorEl, setAnchorEl] = React.useState(null);
function handleClick(event) {
setAnchorEl(event.currentTarget);
}
function handleClose() {
setAnchorEl(null);
}
return (
<div>
<Button aria-controls="simple-menu" aria-haspopup="true" onClick={handleClick}>
Open Menu
</Button>
<Menu
id="simple-menu"
anchorEl={anchorEl}
keepMounted
open={Boolean(anchorEl)}
onClose={handleClose}
>
<ListSubheader>
Group 1
</ListSubheader>
<MenuItem onClick={handleClose}>Profile</MenuItem>
<MenuItem onClick={handleClose}>My account………</MenuItem>
<Divider />
<ListSubheader>
Group 2
</ListSubheader>
<MenuItem onClick={handleClose}>Logout</MenuItem>
</Menu>
</div>
);
} |
oliviertassinari
added
the
status: waiting for author
Issue with insufficient information
label
Aug 23, 2019
oliviertassinari
added
docs
Improvements or additions to the documentation
and removed
status: waiting for author
Issue with insufficient information
labels
Aug 26, 2019
It should be supported. You can either use the native select mode or keep use the non native variant (your example) while keeping the children in flat array. |
oliviertassinari
added
duplicate
This issue or pull request already exists
and removed
docs
Improvements or additions to the documentation
labels
Oct 6, 2019
Let's move the discussion to #2671 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I saw some issues opened in nov. 2017, and today it's still not available.
When it will ?
The text was updated successfully, but these errors were encountered: