Updating the Field Customizer
Git branch and commit reference
This section uses the https://github.com/PacktPublishing/Mastering-SharePoint-Development-with-the-SharePoint-Framework-/tree/chapter11/updating-field-customizer Git branch from the repository.
Please refer to the https://github.com/PacktPublishing/Mastering-SharePoint-Development-with-the-SharePoint-Framework-/commit/9fb8dacdc71b8b2db213d254c1fd3d193accadd5 commit for this section.
In this section, we will see how to update the Field Customizer (which we created in the previous section) to meet the requirement, which is showing a different background color for the Stock level field when its value is less than 10. With this, we will be easily able to see which products are low in stock.
As mentioned in the earlier section, the onRenderCell() method is the one that allows us to customize the rendering of a field. Hence, we will be updating that with the following steps:
- Get the value of the field
- Parse...