Skip to content

Commit b10bcc9

Browse files
author
Mário Valney
committed
Docs: added onClear documentation
1 parent 7b5b828 commit b10bcc9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,16 @@ const DemoComponent = () => {
9393
const handleChange = (selectedDate: Date) => {
9494
console.log(selectedDate)
9595
}
96+
const handleClear = () => {
97+
console.log('Date is cleared!')
98+
}
9699
const handleClose = (state: boolean) => {
97100
setShow(state)
98101
}
99102

100103
return (
101104
<div>
102-
<Datepicker options={options} onChange={handleChange} show={show} setShow={handleClose} />
105+
<Datepicker options={options} onChange={handleChange} onClear={handleClear} show={show} setShow={handleClose} />
103106
</div>
104107
)
105108
}
@@ -179,6 +182,7 @@ const DemoComponent = () => {
179182
- value?: Date
180183
- options?: [IOptions](###IOptions)
181184
- onChange?: (date: Date) => void
185+
- onClear?: () => void
182186
- show: boolean
183187
- setShow: (show: boolean) => void
184188
- classNames?: string

0 commit comments

Comments
 (0)