angularjs : @mention in textarea

杀马特。学长 韩版系。学妹 提交于 2019-12-05 20:39:18

问题


I want to display an autocomplete form triggered by the word @ in my textarea like this library http://ichord.github.io/At.js/ but only using angularjs & css

What kind of directive should I write ? Also, is there a way to implement this with the angular bootstrap UI typehead directive ?


回答1:


See https://github.com/jeff-collins/ment.io for a directive that likely does what you are looking for.




回答2:


I've written angular-otobox, a dependency-less angular directive for mentioning, tagging and higlighiting words in text, it's easy to use. have look, it's easy to use.



来源:https://stackoverflow.com/questions/25326149/angularjs-mention-in-textarea

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!