inveniosoftware / inveniosoftware/react-searchkit

Custom Bucket Rendering

Open
#264 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
83
Forks
48
Avg merge
1d 17h
Merged PRs (30d)
4

Description

Package version (if known): v2.2.5

## Describe the bug
I'm not sure whether it is justified to file a bug in this regard, but there seem to be a mismatch between documentation and code, which might be easy to fix. While evaluating react-searchkit for our purposes, I arrived at the point where I wanted to customize bucket rendering to support enhanced aggregations (namely ISO-date-time ranges). I've checked [this documentation page](https://inveniosoftware.github.io/react-searchkit/docs/components/bucket-aggregation) and was a bit disappointed that in the "Usage when overriding" section no implementation for BucketAggregationContainer and MyBucketAggregationValues could be found, not even a very basic one.

So I decided to work with the elasticsearch demo, as it should contain an example for that scenario. Unfortunately, I realized, that the demo uses the properties 'renderValuesContainerElement' and 'renderValueElement' of BucketAggregation instead, which seem to be not available in version 2.2.5 anymore (I found them in version 1.X).

Now I'm wondering if it would be possible, to provide an easy example based on the demo code, which is working with the current version?

Many thanks in advance.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.