GWT/GXT 标签编辑器?
我正在寻找类似于 http://tagedit.webwork-albrecht. 的基于 GWT(或 GXT)的标签编辑器控件。 de 或 http://levycarneiro.com/projects/tag-it/example.html 甚至 StackOverflow 标签编辑器(在编辑页面上)。我在谷歌中找不到任何搜索此类术语的内容,我想知道是否有人遇到过这样的术语,也许有不同的描述或名称。
提前致谢!
I'm looking for a GWT (or GXT) based tag editor control similar to http://tagedit.webwork-albrecht.de or http://levycarneiro.com/projects/tag-it/example.html or even the StackOverflow tag editor (on the edit page). I couldn't find anything searching for such terms in Google, I was wondering if anyone had ever come across one, perhaps known by a different description or name.
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为你可以在 gwt 中自己做这个。使用标签编辑器组件中的 firebug(您在问题中提到过)并查看源代码以获得更好的想法。
1)创建一些带有边框的面板,看起来像文本框。例如HorizontalPanel。
2) 将高度和宽度匹配的文本框添加到水平面板。现在用户可以将焦点放在文本框中。
3)添加标签后,为给定的输入标签创建一个标签,然后将该标签添加到面板的第一个位置。现在标签出现在第一个位置。然后出现文本框。它看起来像 stackoverflow 标签编辑器。
I think you can make this on your own in gwt. Use the firebug in the tag editor component (which you have mentioned in the question) and see the source code to get better idea.
1) Create some panel with border which looks like text box.For example HorizontalPanel.
2) Add the text box with height and width matches to the horizontal panel.Now user can focus in the text box.
3) Once tag is added create a label for the given input tag then add that label at the first position of panel. Now label appears in the first position. Then textbox appears. It will look like stackoverflow tag editor.