search-ui
search-ui copied to clipboard
Configurable field support for Result component
The Results component should accept a prop called 'displayFields` which would allow users to specify which fields from their result object to display. The parameter should be able to express:
- Order
- field
- field label
Example:
result:
{
title: {title value},
date: {date value},
cats: {cats value }
isbn: {isbn value}
}
Component using new field
<Results
displayFields={[
{ field: "title" },
{ field: "cats", label: "Categories" },
{ field: "date" }
]}
/>
Result in HTML
Title: {title value}
Categories: {cats value}
Date: {date value}
@JasonStoltz can i work on it , if no one else is occupied with it ?
@PRASHANT1104 That would be great.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Is this issue still important to you? If so, please leave a comment and let us know. As always, thank you for your contributions.