AutoComplete field - Objects

UI Components for React
Post Reply
ada888
Posts: 1
Joined: 28 Jan 2019, 12:35

06 Mar 2019, 13:00

Is there a way to extend the property fields?

For example:

Object:

Code: Select all

{name: "United States", code: "USA"}

Code: Select all

<AutoComplete
		[color=#BF0040]field = "code - name" [/color]
		value = {this.state.brands} 
		onChange = {(e) => this.setState ({brands: e.value})}
             	suggestions = {this.state.brandSuggestions} 
             	completeMethod = {this.suggestBrands.bind (this)} />

The input field displays "USA - United States".

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests