Replies: 1 comment
-
There is currently no connection between the fields and the template used. You'll have to provide your own custom template to render the search results. As you are using React, you can follow this doc on how to add your own templates: https://learn.microsoft.com/en-us/graph/toolkit/get-started/mgt-react#templates You'll also need this documentation for the types of result items: https://learn.microsoft.com/en-us/graph/toolkit/components/search-results?tabs=html#templates |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using mgt ^4.0.0 SearchBox and SearchResults react components and can't figure out few things.
My code is:
The code works, I get good results back
But I do not see the DocumetNumber value or the Author values that the fields property sets.
It seams to bring just the last modified and modified by by and a link to the file.
The docs mention template I am clueless how to write it.😰
is there a connection between the fields= and the template?
Any help will help
Beta Was this translation helpful? Give feedback.
All reactions