Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load choices not getting triggered programmatically #19

Open
AlissonTS opened this issue May 23, 2024 · 1 comment
Open

Load choices not getting triggered programmatically #19

AlissonTS opened this issue May 23, 2024 · 1 comment

Comments

@AlissonTS
Copy link

I would like to know how to trigger search event with load choices method programmatically inside component after a user clicks a button called 'Mention'.

I've tried to add a reference to ngx-mentions component and trigger the event emitter called search when the user clicks the button and calls openOptions method, but the array with the options doesn't get showed.

I used @ViewChild('ngxMentions') ngxMentionsRef!: NgxMentionsComponent;

I'd like to allow the user either to type @ following a name, or click the 'Mention' button and then type the respective name with the options presented.

image

image

@abhijit-chikane
Copy link
Owner

abhijit-chikane commented Oct 11, 2024

Sorry I am not actively working on this project anymore.

I would suggest to use this.
This has many more features and free to use.
works for Angular, react , vue
Here is an working example

https://github.com/abhijit-chikane/ngx-tiptap

https://tiptap.dev/docs/examples/advanced/mentions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants