Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- mosquitto.conf
- c# datagridview 데이터 넣기
- datagridview 직접입력
- mosquitto
- allow_anonymouse
- html #select #option #multiple
- DatePicker
- map이 undefined가 뜰 때
- 서버동기화
- DataGridView 직접 입력
- setInterval 정지
- invalid data
- setInterval 외부 정지
- mySQL_Replication
- 1883
- pm2
- tailwind
- vite
- AntDesign
- pm2 시작
- pm2 확인
- react
- listener 1883
- pm2 설치
- setInterval 중지
- setInterval clear
- 맥 어드레스
- timepicker
- 데이터테이블 데이터 넣기
- pm2 상태 확인
Archives
- Today
- Total
개발 노트
antDesign Datepicker 미래 날짜 선택 못하게 설정 본문
disabledDate={(current) =>
current && current >= moment().endOf('day')
}
위의 속성을 추가해주면 된다.
예시 코드는 아래.
<RangePicker
// defaultValue={[
// moment(selectedDates, 'YYYY-MM-DD'),
// moment(selectedDatee, 'YYYY-MM-DD'),
// ]}
format={'YYYY-MM-DD'}
value={[
getDateFormat(moment(selectedDates, 'YYYY-MM-DD')),
getDateFormat(moment(selectedDatee, 'YYYY-MM-DD')),
]}
onChange={onChange}
disabledDate={(current) =>
current && current >= moment().endOf('day')
}
/>
'React' 카테고리의 다른 글
Input 입력 후 유효성 검사 : 문제 해결 과정 / Debounce 발견 (0) | 2023.06.14 |
---|---|
eslint -disable 경고 해결 (0) | 2023.06.14 |
useEffect에서 setInterval 사용할시 주의점 (0) | 2023.04.20 |
React에서 object를 setter함수로 다룰 때 (0) | 2023.04.05 |
"TypeError: rawData.some is not a function" 오류 메시지 (0) | 2023.03.13 |