jQuery UI 有办法实现 Flash 按钮的功能吗?
Flash 中有一个看起来像 jQuery SplitButton 的按钮。 Flash 按钮由两部分组成:文本和图标。
[text portion] [v]
我用它来为用户显示字符串搜索运算符:等于、开头为、结尾为、包含。在 Flash 中,当单击图标时,文本区域会下拉出一个选项列表;它看起来像这样:
[ ] [v]
equals
starts with
ends with
contains
当用户从列表中做出选择时,该选择将显示在按钮的文本区域中,并且列表会滚动。
[ starts with ] [v]
我正在尝试转换我的 Flash 应用程序,并希望能找到与此功能相对应的功能。考虑到表单上的空间,单选按钮组不太理想。这是该 Flash 按钮的主要优点——它非常节省屏幕空间的使用。
感谢您的任何答案/建议。
There's a button in Flash which looks something like a jQuery SplitButton. The Flash button consists of two parts, the text and the icon.
[text portion] [v]
I have used it to display string search operators for the user: equals, starts with, ends with, contains. In Flash, when the icon is clicked, the text-area drops down a list of choices; it would look like this:
[ ] [v]
equals
starts with
ends with
contains
And when the user makes a choice from the list, the choice is displayed in the text area of the button and the list rolls up.
[ starts with ] [v]
I'm trying to convert my Flash app and am hoping to come up with a counterpart to this functionality. For space considerations on the form, a radio-button-group would be less than ideal. That's the major virtue of this Flash button -- it's very economical in its use of screen real-estate.
Thanks for any answers/suggestions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您提到了 jQuery UI SplitButton,但没有说明为什么它不合适:
http://jqueryui。 com/demos/button/#splitbutton
您当然可以动态地将按钮文本设置为选择吗? jQuery UI 站点上的主题选择器就是一个例子。
You mention the jQuery UI SplitButton but you don't say why it's not suitable:
http://jqueryui.com/demos/button/#splitbutton
Surely you could just dynamically set the button text to the selection? An example of this would be the theme picker on the jQuery UI site.