-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[TimePicker] Allow to provide my own views #5079
Comments
I don't think it's possible because there's no way to replace the content rendered inside the popover. The one in the screenshot is completely different from the clock view we have. There're should be a way to replace About splitting the time input into two inputs, it's similar to #5021 Pinging @flaviendelangle and @alexfauquette since they work in this component. |
The UI you are proposing could be one of the variant we intend to implement in #4483 But we should also improve the ability to replace big parts of the UI for users wanting deep customization. |
I have a similar requirement. Ideally, I'd like to show two icons inside the input, one for date selection (with the current date picker), and the second for time (with list). Searching over the net I found a similar component: |
@vickonrails @Misiu |
@LukasTy I missed that one, thx for the link.
but not sure if this will allow us to build a single view that will allow us to pick hours and minutes (like on screenshots in initial message). Idea is to unify hours and minutes view into a single view (with two inputs). |
As you can see in the example linked within the issue as well as the fact, that all views have the same renderer—component. It should be possible, unless there would be some missing state/prop propagation, that would be needed to handle specific scenario. |
@LukasTy thats great news, thanks! |
Closing this issue as the ability to provide your own view renderer has already been introduced in v6. |
Duplicates
Latest version
Summary 💡
First off, great job on the Library🙏.
Now to the point... The new TimePicker from mui-x doesn't meet my current visual needs and I'm looking to heavily customize it. Just wanted to find out if the community could point me in the right direction to do this.
Basically wanted to achieve something like this with a few criteria
Something similar to this variant in the material design spec
Unfortunately, the closest implementation I can find in mui is this one
This misses a lot from the spec like
My questions are
Thanks a lot in advance. Great job with the library!
Examples 🌈
No response
Motivation 🔦
No response
The text was updated successfully, but these errors were encountered: