Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. <FormControl className={classes.formControl}>
  2. <Select
  3. value={value.groupId}
  4. onChange={handleChange}
  5. MenuProps={{
  6. getContentAnchorEl: null,
  7. anchorOrigin: {
  8. vertical: "bottom",
  9. horizontal: "left",
  10. },
  11. }}
  12. classes={{
  13. icon: isDarkMode ? classes.iconLight :classes.icon,
  14.  
  15. }}
  16. ListProps={{disablePadding: true}}
  17. inputProps={{
  18. name: 'groupId',
  19. id: 'group-machines',
  20. }}
  21. >
  22.  
  23. {
  24. equipmentgroups.map(equipmentgroup =>
  25. <MenuItem
  26. style={isDarkMode ? {backgroundColor: theme.palette.primary.dark} :
  27. {backgroundColor: theme.palette.secondary.main}}
  28. className={classes.menuItemDisplay}
  29. value={equipmentgroup.groupId}
  30. key={equipmentgroup.groupId}
  31. >{equipmentgroup.groupName}</MenuItem>
  32. )
  33.  
  34. }
  35.  
  36. </Select>
  37. </FormControl>
  38.  
  39. .MuiList-padding-370 {
  40. padding-top: 8px;
  41. padding-bottom: 8px;
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement