[英]Autocomplete/tagging jQuery plugin with ordering and cursor
I'm looking for a jQuery tagging/autocomplete plugin where I tags can be inserted mid-order - and control over this is possible with the mouse.
我正在寻找一个jQuery标签/自动完成插件,可以在其中插入我的标签,并且可以使用鼠标对其进行控制。
I've gone through everything I can find, but am yet to find a plugin with all the requirements I'm looking for. 我已经找到了所有可以找到的东西,但是还没有找到具有我所需要的所有需求的插件。 I'm looking for a Facebook-esque tagging plugin, yet I'll be working with pre-defined phrases, and building them up into a paragraph, so I need to be able to control the order, and potentially insert a new tag in the middle of an existing selection.
我正在寻找一个具有Facebook风格的标签插件,但是我将使用预定义的短语,并将其构建为一个段落,因此我需要能够控制顺序,并可能在其中插入新标签现有选择的中间。
The closest I've found to having this functionality is TextBoxList and the 'Facebook Theme' of JQuery TokenInput . 我发现与该功能最接近的是TextBoxList和JQuery TokenInput的“ Facebook主题”。 Both of these however only allow you to move the cursor between tags with the arrow keys - and I'm looking to be able to mouseclick to control the cursor aswell.
但是,这两种方法都只允许您使用箭头键在标签之间移动光标-我希望能够通过鼠标单击来控制光标。
Anyone know anything that's got what I need? 有人知道我需要什么吗? A few other key essentials are free-text input (when no tag matches), remote source of data, and form submission, but I'd hope they'll be easier to retro-fit to something else!
其他一些关键要素是自由文本输入(当没有标签匹配时),远程数据源和表单提交,但是我希望它们能更容易地改型到其他东西!
An update for Googlers - I went with jQuery-tokeninput, and have spent the day modifying the library to work with mouse input. Google员工的更新-我使用了jQuery-tokeninput,并且花了整整一天时间修改库以使用鼠标输入。 When I get time to tidy the code, and check how it works with other themes, I may put a pull request on GitHub, it seems like fairly useful functionality to me.
当我有时间整理代码并检查其如何与其他主题配合使用时,我可以在GitHub上发出拉取请求,这对我来说似乎是相当有用的功能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.