今天早上和HAML有点纠缠。我希望我的客户能够在下拉列表中按住shift键并单击多个选项。这是我现在拥有的--一个普通的dropbox:
.form-group
%label.col-md-4.control-label
="#{field_name}:"
.col-md-8
= select_tag "filters[#{field}]", options_for_select([["opt1", "1"], ["opt2", "2"], ["opt3", "3"]], selected: current_select_filter_value(field)), class: 'form-control', title: local_assigns[:tooltip].nil? ? "" : tooltip, include_blank: include_blank我一直在用谷歌搜索等等,看看有没有什么简单的标志或绕过弯的方法,让人们只需按住shift键单击即可。我担心我可能需要完全使用一个新的元素--但如果能通过dropbox实现那就太好了。有人有这方面的经验吗?
https://stackoverflow.com/questions/47838379
复制相似问题