-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pickers] Add viewRenderers
documentation
#4662
Comments
I would indeed be nice to be able to customize the year / month @alexfauquette for day / month / year custom rendering, should be also use component slots ? (so replace |
Yes, the slot seems to work well on datagrid, so we could reuse it here. @Semigradsky What do you want to perform with custom month/year? Most of the modifications can be done with CSS class names |
@alexfauquette My current need - specially display 'today' month/year. For example, today (2022-04-26) 'today month' is April and 'today year' is 2022. |
Showing today does not feel like an isolated use-case. We could add a |
And |
We plan to create those two 馃憤 |
The ability to override views has been added via If you do have the time and need, could you please investigate if this option covers your use case? As for the issue. I'm renaming it to cover the implementation of the |
viewRenderers
documentation
I'm trying to highlight specific days on the date picker, it sounds like |
@sarink |
Well, I need a "quarter" view, which I thought would be an easy job, basically taking month view and going from 12 to 4 items. If I understood correctly, I would now need to copy-paste |
Oh, such a change would be hardly trivial, because it's technically a separate view and would be easier to implement if we had this view in the options. Another option, as you've said, would be to create your own |
Yea, I tried that, and the easies way is copy those two files, change imports of internals, from relative to project, (+ add the package into |
Looks like |
The This is a tool that is only built for the pickers. |
|
Yes it does Basically, the |
Ok, are there any plans to adding |
No, it's not something we are considering for now.
If what you are trying is to override a single month / year button, then sure we can add those slots. |
Yeah, that is what I need 馃檹 |
i would also appreciate this feature. |
Edit
The new purpose of the issue is mentioned here.
Duplicates
Latest version
Summary 馃挕
There is the solution for customizing days - https://mui.com/x/react-date-pickers/date-picker/#customized-day-rendering
Need to have a solution for customizing months and years.
Examples 馃寛
renderMonth
andrenderYear
properties?Motivation 馃敠
No response
Order ID 馃挸 (optional)
No response
The text was updated successfully, but these errors were encountered: