谁能告诉我如何避免取消选中 extjs4.1 中的复选框?在我的应用程序中,应始终选中该复选框。用户不应取消选中该复选框。
最佳答案
您可以使用 readOnly
配置属性并使用 readOnly: true
配置您的复选框。此复选框的值将正常提交,但用户无法取消选中该复选框。
{
xtype: 'checkbox',
boxLabel: 'Read only checkbox',
name: 'readOnly',
readOnly: true,
checked: true
}
关于javascript - 如何避免取消选中 extjs4.1 中的复选框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20866479/