-
Notifications
You must be signed in to change notification settings - Fork 831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Datepicker] - add ok and cancel button #1795
Comments
There is no way to display dialog buttons on the desktop with |
A couple of buttons and there use cases that come to mind for the date picker:
That could potentially be useful. I don't know if it's something that should be built-in, or only provide a customization point for doing it. |
We could think about some option to render For instance react-dates have the following prop <DateRangePickerWrapper calendarInfoPosition="bottom" renderCalendarInfo={renderCalendarInfo} autoFocus /> http://airbnb.io/react-dates/?path=/story/drp-calendar-props--with-info-panel-bottom |
A random thought on the possible API: <DatePicker
renderPopup={(props) => {
<div>
<StaticDatePicker {...props} />
<Button>OK</Button>
</div>
}}
/> |
good thanks! |
how can I override the 'OK' and 'Cancel' text from KeyboardDatePicker? |
This allows us to render anything after the calendar (buttons, text…) by passing the renderCalendarInfo props to DateRangePicker.
This allows us to render anything after the calendar (buttons, text…) by passing the renderCalendarInfo props to DateRangePicker.
This allows us to render anything after the calendar (buttons, text…) by passing the renderCalendarInfo props to DateRangePicker.
This allows us to render anything after the calendar (buttons, text…) by passing the renderCalendarInfo props to DateRangePicker.
Current Behavior 😯
I don't know why I don't find how to add the ok cancel button (It works in the past)
Expected Behavior 🤔
expected to have the ok and cancel buttons.
Context 🔦
Your Environment 🌎
The text was updated successfully, but these errors were encountered: