A
A
Anastasia2020-11-03 13:55:10
React
Anastasia, 2020-11-03 13:55:10

How to change the placeholder for the Search field for the TreePicker component from the rsuite library?

It is necessary to change not the placeholder of the cover - Select, but from the placeholder that opens me for the search field - Search, I don’t know how to get to it

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2020-11-03
@KnopkaNen

<TreePicker
  locale={{
    searchPlaceholder: 'hello, world!!',
  }}

True, there is a problem - the value is not combined with the default one, but replaces it, so you will have to additionally specify the remaining properties if you do not want to see a void in the place of the main placeholder and a message about the lack of search results.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question