반응형
<Select
className="select2-selection col-3 col-12 mb-1 mt-1"
name="level"
options={levelJson}
defaultValue={moveData?.selectedLv}
getOptionLabel={getOptionLabel}
getOptionValue={getOptionValue}
onChange={(e)=> userEditHandler(e, "level")}
styles={{
control: (styles) => ({
...styles,
backgroundColor: "#eff2f7",
opacity: 1,
color: "#495057",
cursor: 'not-allowed',
pointerEvents:"all"
})
}}
isDisabled={true}
/>
참조.
https://mingmeng030.tistory.com/267
[React] react-select를 사용해보자
현재 만들고 있는 프로젝트는 가게 직원의 스케줄 및 출근부를 관리하는 웹 페이지이다. 각 가게마다 같은 이름의 직원이 등록될 수 있다고 간주하고 이름과 색상을 함께 조합하여 구분한다. (
mingmeng030.tistory.com
https://react-select.com/styles
React-Select
A flexible and beautiful Select Input control for ReactJS with multiselect, autocomplete and ajax support.
jedwatson.github.io
728x90
'취업 > React.JS' 카테고리의 다른 글
[React] 유니레벨 차트 org chart 기능 구현 결과물. (0) | 2023.06.14 |
---|---|
[react] formik 라이브러리 동적 할당하기. (0) | 2023.06.02 |
[React.js] tailwind.css 설치하기 (0) | 2023.04.26 |
[React] user ip 추출하기. (0) | 2023.03.31 |
[React] IFrame에 폼태그 전송하기. (0) | 2023.02.28 |