如何在Php中的Ext Js中使用Checkbox制作多个Combobox? [英] How To Make Multiple Combobox with Checkbox in Ext Js in Php ?

查看:64
本文介绍了如何在Php中的Ext Js中使用Checkbox制作多个Combobox?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早上好!



我在Ext Js中找到了很多选择组合框但是我失败了..

所以请建议我好的链接..



在此先感谢。

Good Morning !

I Found a lot for Multiple Selection Combobox in Ext Js But I Failed..
So Please Suggest Me A Good Link..

Thanks In Advance.

推荐答案

如果你需要实现一个组合框有多个选择,我强烈建议设计一些非常不同的东西:每个节点都有一个带有复选框的树状视图:

https://github.com/krejcon3/CheckBoxTree/blob/master/CheckBoxTree.php [ ^ ],

http://demo.koolphp.net/Examples/KoolTreeView/Advances/TreeView_With_CheckBox [ ^ ]。



我明白你并不需要一棵树。如果您只使用单层树,并且可能不会渲染这些虚线,您将得到您想要的。为什么会比多选组合框好多少?因为这样的组合框会以非常令人困惑的方式对您的用户进行查看和操作,并且因为通过一次随机点击就可以轻松破坏彻底选择的选择。



这是不是带有复选框的节点的情况。每个节点看起来非常具有启发性,很明显它可以被检查,独立于选择和键盘焦点和选择的检查状态不能破坏检查状态;对于一个用户来说,做什么会更清楚。



你找不到多选组合框或列表框不是因为人很傻(可能,它是仍然可以找到;我从未尝试过),但因为这样的控制并不是一个好主意。



-SA
If you need to implement a combo box with multiple selection, I would strongly recommend to design something very different: a tree view with check boxes in each node:
https://github.com/krejcon3/CheckBoxTree/blob/master/CheckBoxTree.php[^],
http://demo.koolphp.net/Examples/KoolTreeView/Advances/TreeView_With_CheckBox[^].

I do understand that you don't really need a tree. You will get what you want if you use just a single-level tree and probably won't render those dotted lines. Why is will be much better than multiple-selection combo box? Because such combo box will look and act in a very confusing way to your users, and because thoroughly chosen selection will be easily destroyed by a single random click.

This is not the case with nodes with check box. Each node looks very suggestive, it's clear that it can be checked, the checked state in independent from both selection and keyboard focus and selection cannot destroy checked status; for a user, it will be much clearer what to do.

You failed to find multiple-selection combo box or list box not because people are stupid (probably, it's still possible to find; I never tried), but because such control is not really a good idea.

—SA


这篇关于如何在Php中的Ext Js中使用Checkbox制作多个Combobox?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆