You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert

6
6
7
-
8
-
> ⚠️ This component is in active development. Consider it **not** ready for production.
9
-
10
-
All-in-one React component for rendering an elastic search UI based on the provided configuration. Includes
7
+
All-in-one, highly configurable React component for rendering an elastic search UI based on the provided configuration. Includes
11
8
an interactive graph of related records.
12
9
13
10
This is an ESM Module intended for use in modern React applications. Make sure your bundler supports importing CSS files in JavaScript/TypeScript. Next.js is supported out of the box.
@@ -20,13 +17,55 @@ This is an ESM Module intended for use in modern React applications. Make sure y
20
17
21
18
## Docs
22
19
23
-
[Visit the Storybook](https://kit-data-manager.github.io/react-fairdo-search/?path=/docs/getting-started--docs)
20
+
[Visit the Storybook](https://kit-data-manager.github.io/react-fairdo-search/?path=/docs/getting-started--docs) for examples and some documentation. For more documentation, consult the TypeScript typings.
21
+
22
+
## Quick Start
23
+
24
+
Refer to the Getting Started Guide in the Storybook
24
25
25
26
## Customization
26
27
28
+
### Result View
29
+
30
+
Most notably, the result view component should be customized. A `GenericResultView` Component is provided that should work
31
+
for some scenarious out of the box. Otherwise, you should implement your own Result View in React. For a starting point, feel
32
+
free to copy the code of `GenericResultView.ts`, though most of the customization should be thrown out to make it more lightweight.
33
+
34
+
### Generic Result View
35
+
36
+
Each field of the generic result view can be mapped to a field in the elastic search index. Additionally, you can specify multiple
37
+
tags from multiple different fields in the elastic index. Take a look at the Storybook for an example.
38
+
39
+
To map (parts of) the result before feeding it to the `GenericResultView`, you can define you own component that itself
0 commit comments