San

San

  • NA
  • 804
  • 324.9k

How to break the display value

Jul 6 2018 11:53 AM
Please check the below code :
).pipe(
map(list => list.map(e => ({
value: e.AccountID,
display: `${e.accountName}${e.primaryPhone } (${e.emailAddress})`,
details: {}
}))));
 
We need to display the output like
AccountName
PrimaryPhone EmailAddress 
 
Current display in autocomplete search like  
AccountName PrimaryPhone EmailAddress
 Need to break after AccountName 

Answers (1)