Topic: Label,value pair in MDB pro autocomplete for Angular
aleksandars2b pro asked 7 years ago
NCIIT answered 7 years ago
I have the same issue, would like to have "value" / "label" pair for autocomplete to pass "value" when form submitted
For now used (selected) EventEmitter of completer
<mdb-completer [label]="'Search'" name="autocomplete" placeholder="search" [(ngModel)]="tag" [datasource]="tagList" [minSearchLength]="2" #item (selected) = "onAddTag($event)"></mdb-completer>
onAddTag = function(selectedObject: any) { console.log(selectedObject.originalObject); };
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No