Range Filter
The range filter provides the ability to create a range of
Example
import {
RangeFilter,
SearchkitComponent
} from "searchkit";
class App extends SearchkitComponent<any, any> {
render(){
<div>
<RangeFilter field="metaScore" id="metascore" min={0} max={100} showHistogram={true} title="MetaScore"/>
</div>
}
}
Props
field
(ESField): Required. An elasticsearch numerical field value.id
(string): Required. id of component. Must be unique. Used as key for url serialisationmin
(number): Required. min start rangemax
(number): Required. max start rangetitle
(string): Required. Title used for component and for selected filters componentshowHistogram
(boolean): Shows a histogram to provide a guide where their range would hit results.