Building a Search Query Modifier
In the previous chapter, we saw how to create a ListView Command Set (one of the multiple elements that we can create with SPFx) – a component that allows us to add custom menu options to the command bar or context menu of SharePoint items. We made that component visible only for those products that were low in stock and provided a command that would help the user place a new order. In this chapter, we will move away from the theme of low stock and switch the context to searching for products. For that, we will look into a search-related element of SPFx called Search Query Modifier.
Some of the concepts in this chapter will be similar to, or in line with, the concepts mentioned in the previous chapters on Web Parts. In this chapter, you will do the following:
- Learn how to create a Search Query Modifier from scratch using SPFx to meet functional requirements
- Understand the Search Query Modifier development flow using SPFx-provided...