File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments