취업/React.JS
[React-select] cursor not-allowed 적용
카슈밀
2023. 5. 31. 12:32
반응형
<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