dmacfarlane / angular-mentions

Angular mentions for text fields.
MIT License
196 stars 171 forks source link

Click on mention item, show mention list items. #116

Closed komxvl closed 4 years ago

komxvl commented 5 years ago

How I can to show mention list when click on @items. Like this

pgedzba commented 5 years ago

You want to open mention list after clicking a button?

komxvl commented 5 years ago

No, on click mention item in input, @Peter, click on Peter show list. In fact, I want to create something like this. This is a chatfuel attributes

Alec-Aldrine-Lakra commented 4 years ago

@komxvl on selecting an input create a span element inside which you place the selected element. To that span element add an event listener and within the event function generate a keyboard event somewhat like this

   const event = new KeyboardEvent("keydown", { key : `@`, code : `Digit2`});
komxvl commented 4 years ago

Hi @Alec-Aldrine-Lakra . Thnx for your answer, if you have some similar functionality, could you share, please. In this library, @rajshivam did it.