components icon indicating copy to clipboard operation
components copied to clipboard

autocomplete on textarea

Open fxck opened this issue 9 years ago • 6 comments

usecase is this image

it should be as easy as extending the selector.. I think?

But it's gotta be said that it would be cool if you could open it at the caret position, as it works on github.

image

@kara @crisbeto

fxck avatar May 29 '17 17:05 fxck

It's like this project : https://github.com/dmacfarlane/angular2-mentions

Zefling avatar Jun 01 '17 14:06 Zefling

I'm working on porting https://github.com/angular-ui/ui-mention to angular2 as a temporary solution to https://github.com/angular/material2/issues/4444

fxck avatar Jun 01 '17 15:06 fxck

Yeah, adding it to the caret position would be cool, probably would need a different PositionStrategy for that. For now I don't see why it can't be on textarea as well if you want to send a PR

jelbourn avatar Jun 02 '17 23:06 jelbourn

Fixed in #4945

jelbourn avatar Jun 08 '17 16:06 jelbourn

Does anyone have any examples of how they've implemented this? Do you just detect keystrokes on the textarea and then trigger the autocomplete when it's the proper character and set the origin element to the cursor or something? Would be very much appreciated.

jordangotbaum avatar Nov 20 '18 21:11 jordangotbaum

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.