fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Dropdown: support customization of Element-type error message

Open yangjocy opened this issue 4 years ago • 5 comments

Describe the feature that you would like added

Just like onGetErrorMessage of TextField, consumer could define their own JSX Elements for error message. Currently, Dropdown only supports a string-type prop errorMessage.

What component or utility would this be added to

Dropdown

Have you discussed this feature with our team, and if so, who

No

Additional context/screenshots

Customization example: image

yangjocy avatar Sep 27 '21 07:09 yangjocy

I’ve added this to our backlog for review but it’s low on our priority list as we’re likely not going to get to it immediately due to the fact we’re currently focused on larger coherence work items and enhancements to our performance.

gouttierre avatar Oct 25 '21 13:10 gouttierre

I'm designing a component for the Portal framework that generates validations with links for partners to use. It would be great if all controls with validations could have a unified errorMessage typing so these errors can be displayed correctly.

DrSammyD avatar Jan 28 '22 17:01 DrSammyD

We're also interested in this feature for inputs other then TextField (dropdown, toggle, combo, choice etc..) We are using an icon inside our error messages and would like to have all the defaults used by fluent without writing a custom component for it.

omerdolev-ms avatar Jun 13 '22 13:06 omerdolev-ms

My team would also benefit from this feature. Do you have any rough estimates when do you plan to do it? Thanks

milanbrkic-ms avatar Sep 02 '22 10:09 milanbrkic-ms

This is not something the core team is working on now, but this is a good opportunity for a contribution and something we'd love to collaborate on.

JustSlone avatar Sep 12 '22 17:09 JustSlone

Because this issue has not had activity for over 180 days, we're automatically closing it for house-keeping purposes.

Still require assistance? Please, create a new issue with up-to date details.

msft-fluent-ui-bot avatar Mar 18 '23 19:03 msft-fluent-ui-bot