简体   繁体   中英

Custom values for ReactiveSearch RangeSlider

I am trying to use the RangeSlider component of Reactivesearch and got stuck into setting the range value. I have a database with books and I want to use the RangeSlider for the publication year of the books. I would like the start value to be the minimum year in database, and the end value to be the maximum year. Any idea how to do this?

您可以使用ReactiveSearch的DynamicRangeSlider组件并使用道具defaultSelected如果您使用的版本2或defaultValue ,如果您使用的版本3。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM