You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|showRequiredError|boolean|no|Specifiesifthecomponentshouldshowmandatoryfielderrormessagebecauseofsomechangesoccuredinparent. Usethisprops (setto`true`), for example, when "Save" button on the form has been clicked | |
|onGetErrorMessage|(items:IPersonaProps[]) =>string \|Promise<string> |no|Themethodisusedtogetthevalidationerrormessageanddeterminewhetherthepickervalueisvalidornot. Mutuallyexclusivewiththestaticstring`errorMessage` (itwilltakeprecedenceoverthis).<br/>Whenitreturnsstring:<ul><li>Ifvalid, it returns empty string.</li><li>If invalid, it returns the error message string to be shown below the picker.</li></ul><br />When it returns Promise<string>:<ul><li>Theresolvedvalueisdisplayaserrormessage.</li><li>Therejected, the value is thrown away.</li></ul> | |
66
66
| errorMessageClassName | string | no | applies custom styling to the error message section | |
67
67
| showtooltip | boolean | no | Defines if need a tooltip or not | false |
68
68
| tooltipMessage | string | no | Specify the tooltip message to display | |
69
69
| tooltipDirectional | DirectionalHint | no | Direction where the tooltip would be shown | |
* Static error message displayed below the text field. Use onGetErrorMessage to dynamically change the error message displayed (if any) based on the current value. errorMessage and onGetErrorMessage are mutually exclusive (errorMessage takes precedence).
53
+
* Static error message displayed below the picker. Use onGetErrorMessage to dynamically change the error message displayed (if any) based on the current value. errorMessage and onGetErrorMessage are mutually exclusive (errorMessage takes precedence).
54
54
*/
55
55
errorMessage?: string;
56
56
/**
57
-
* The method is used to get the validation error message and determine whether the input value is valid or not.
57
+
* The method is used to get the validation error message and determine whether the picker value is valid or not.
58
58
* Mutually exclusive with the static string errorMessage (it will take precedence over this).
59
59
*
60
60
* When it returns string:
61
61
* - If valid, it returns empty string.
62
-
* - If invalid, it returns the error message string and the text field will
63
-
* show a red border and show an error message below the text field.
62
+
* - If invalid, it returns the error message string and the picker will
63
+
* show an error message below the picker.
64
64
*
65
65
* When it returns Promise<string>:
66
66
* - The resolved value is display as error message.
0 commit comments