extjs:复选框缩进样式,但不显示fieldlabel
关于复选框缩进样式的简短问题。将创建一个新复选框,如下所示:extjs:复选框缩进样式,但不显示fieldlabel,extjs,checkbox,indentation,Extjs,Checkbox,Indentation,关于复选框缩进样式的简短问题。将创建一个新复选框,如下所示: var newLegendItem = new Ext.form.Checkbox({ boxLabel: "test", name: "test", checked:true }); 在浏览器中,“输出”复选框从左到右没有缩进。我需要做什么来应用缩进样式 谢谢 设置边距,根据口味调整大小: var newLegendItem = new Ext.form.Checkbox({ style: 'm
var newLegendItem = new Ext.form.Checkbox({
boxLabel: "test",
name: "test",
checked:true
});
在浏览器中,“输出”复选框从左到右没有缩进。我需要做什么来应用缩进样式
谢谢 设置边距,根据口味调整大小:
var newLegendItem = new Ext.form.Checkbox({
style: 'margin-left: 30px',
boxLabel: 'test',
name: 'test',
checked: true
});
设置边距,根据口味调整大小:
var newLegendItem = new Ext.form.Checkbox({
style: 'margin-left: 30px',
boxLabel: 'test',
name: 'test',
checked: true
});
如果要将其与其他表单字段对齐,请尝试:
hideLabel: false,
fieldLabel: ' '
如果要将其与其他表单字段对齐,请尝试:
hideLabel: false,
fieldLabel: ' '
如果希望它与其他表单元素对齐,根据文档,以下是正确的方法:
hideEmptyLabel: false
如果希望它与其他表单元素对齐,根据文档,以下是正确的方法:
hideEmptyLabel: false
这应标记为正确答案imho,其他提案为变通办法。这应标记为正确答案imho,其他提案为变通办法。