Open kalpesh-coditas opened 6 months ago
I am trying customise year text and in docs "renderYearContent" prop is given to do so but actually this prop is not available in proptypes of react datepicker, is there any workaround for this ??
() => { const renderYearContent = (year) => { const tooltipText = `Tooltip for year: ${year}`; return <span title={tooltipText}>{year}</span>; }; return ( <DatePicker selected={new Date()} renderYearContent={renderYearContent} showYearPicker dateFormat="yyyy" /> ); };
I hope will be handled here https://github.com/Hacker0x01/react-datepicker/issues/4700
I am trying customise year text and in docs "renderYearContent" prop is given to do so but actually this prop is not available in proptypes of react datepicker, is there any workaround for this ??