Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <FormControl className={classes.formControl}>
- <Select
- value={value.groupId}
- onChange={handleChange}
- MenuProps={{
- getContentAnchorEl: null,
- anchorOrigin: {
- vertical: "bottom",
- horizontal: "left",
- },
- }}
- classes={{
- icon: isDarkMode ? classes.iconLight :classes.icon,
- }}
- ListProps={{disablePadding: true}}
- inputProps={{
- name: 'groupId',
- id: 'group-machines',
- }}
- >
- {
- equipmentgroups.map(equipmentgroup =>
- <MenuItem
- style={isDarkMode ? {backgroundColor: theme.palette.primary.dark} :
- {backgroundColor: theme.palette.secondary.main}}
- className={classes.menuItemDisplay}
- value={equipmentgroup.groupId}
- key={equipmentgroup.groupId}
- >{equipmentgroup.groupName}</MenuItem>
- )
- }
- </Select>
- </FormControl>
- .MuiList-padding-370 {
- padding-top: 8px;
- padding-bottom: 8px;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement