multiselect dropdown options display api from Db
onChange={this.submit} options={objectArray} displayValue="key" className="multi" selectedValues={selectedValues} />
multiselect dropdown options display api from Db
onChange={this.submit} options={objectArray} displayValue="key" className="multi" selectedValues={selectedValues} />
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vaibhav ChauhanPosted Jul 9, 2021, 8:47 AM
In componentdidMount() function you can fetch data from API and set it in the state selectedValues
some thing like this
selvi jpPosted Jul 9, 2021, 8:26 AM
Vaibhav ChauhanPosted Jul 9, 2021, 7:53 AM