Browse Source

combo update

CR003
Alex Cheung 10 months ago
parent
commit
ded2428881
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      src/pages/PublicNotice/Search_GLD/SearchForm.js

+ 9
- 0
src/pages/PublicNotice/Search_GLD/SearchForm.js View File

@@ -296,6 +296,7 @@ const SearchPublicNoticeForm = ({ applySearch, orgComboData, searchCriteria, iss
disablePortal disablePortal
id="orgId" id="orgId"
options={orgCombo} options={orgCombo}
groupBy={(option) => option.groupType}
size="small" size="small"
value={orgSelected} value={orgSelected}
getOptionLabel={(option) => option.name? option.name : ""} getOptionLabel={(option) => option.name? option.name : ""}
@@ -315,6 +316,14 @@ const SearchPublicNoticeForm = ({ applySearch, orgComboData, searchCriteria, iss
}} }}
/> />
)} )}
renderGroup={(params) => (
<Grid item key={params.key}>
<Typography fontSize={20} fontStyle="italic" p={1}>
{params.group}
</Typography>
{params.children}
</Grid>
)}
/> />
</Grid> </Grid>
: <></> : <></>


Loading…
Cancel
Save