Updated CategoryValue defaultValue docs (#20101)

This commit is contained in:
Candice Ye
2022-07-19 21:04:52 -07:00
committed by GitHub
parent 5e88338423
commit 6c59779137

View File

@@ -202,7 +202,7 @@ This defines the set of options for this field to display. There are a number of
* String array (`string[]`) - A static list of values that will be shown as a dropdown. Default value selected is defined as `FieldInfo.defaultValue`.
* CategoryValue array (`azdata.CategoryValue[]`) - A static list of CategoryValue objects that will be shown as a dropdown. Each value will define a display name separate from its value - use this for values you want to display differently to the user (such as names for an Azure region).
* CategoryValue array (`azdata.CategoryValue[]`) - A static list of CategoryValue objects that will be shown as a dropdown. Each value will define a display name separate from its value - use this for values you want to display differently to the user (such as names for an Azure region). If you use a CategoryValue array as your options, ensure you set the defaultValue to the CategoryValue's displayName rather than the name.
* [OptionsInfo](#optionsinfo) - An object allowing more control over the option values.