Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
extjs:复选框缩进样式,但不显示fieldlabel_Extjs_Checkbox_Indentation - Fatal编程技术网

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,其他提案为变通办法。