Skip to content

Commit 6f926a0

Browse files
authored
Minor update
1 parent f31a2cc commit 6f926a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

powerapps-docs/maker/common-data-service/display-custom-icons-instead.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Custom icons in list views can display in Unified Interface, legacy web client,
100100

101101
Assuming you will be adding custom icons for an option-set type of attribute, which has a limited set of predefined options, make sure you use the integer value of the options instead of label to avoid localization issues.
102102

103-
**Note**: If it is necessary to retrieve data to determine the icon, Unified Interface supports returning a Promise which resolves to a boolean (similar to ribbon rules). Do not use synchronous XHR's in your custom function.
103+
**Note**: If it is necessary to retrieve data to determine the icon, Unified Interface supports returning a JavaScript Promise object which resolves to a boolean (similar to ribbon rules). Do not use a synchronous XMLHttpRequest (XHR) in your custom function.
104104

105105
The following sample code displays icons and tooltips based on one of three values (1: Hot, 2: Warm, 3: Cold) in the opportunityratingcode (Rating) attribute. The sample code also shows how to display localized tooltip text. For this sample to work, you must create three image web resources with 16x16 images with the following names: new_Hot, new_Warm, and new_Cold.
106106

0 commit comments

Comments
 (0)