-
I started to study Blazor and Fluent UI Blazor recently, it's very exciting. I'd like to know how to extend an existing Fluent UI Blazor components. Taking FluentDatePicker as an example, it doesn't seem to support double-click event on its text field. I want to add a new behavior to FluentDatePicker: Double-clicking the text field of the FluentDatePicker can fill out today's date immediately. How can I implement that? Do I have to extend the functionality on the FluentDatePicker itself, like cloning the whole fluentui-blazor repository or can simply create a new class in my project that inherits the FluentDatePicker class then extend the functionality? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Either approach works. But I think it could be a useful addition to our component so I rather have you create a PR with which we can integrate this into the library for everyone. |
Beta Was this translation helpful? Give feedback.
-
I don't really understand the suggestion: why would you want to double-click on the textfield to select the current date? I don't understand how the user is going to know that they have to do this to display the current date. Why not add a ‘Today’ button to the date selection panel? That's the choice provided by FluentUI and React, for example. |
Beta Was this translation helpful? Give feedback.
Either approach works. But I think it could be a useful addition to our component so I rather have you create a PR with which we can integrate this into the library for everyone.