Page 1 of 1

AutoComplete field - Objects

Posted: 06 Mar 2019, 13:00
by ada888
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".