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:字段集更改折叠图标_Extjs_Icons_Collapse_Fieldset - Fatal编程技术网

extjs:字段集更改折叠图标

extjs:字段集更改折叠图标,extjs,icons,collapse,fieldset,Extjs,Icons,Collapse,Fieldset,如何更改字段集组件的展开/折叠图标?默认情况下,它是一个倒三角形箭头,我想将它设置为“+”/“-”?使用“itemCls” 谢谢 修改折叠按钮的css(在此处背景位置) 这里是我的css: #plus-min.x-panel-collapsed .x-tool-toggle{ background-position: 0 -240px !important; /*the plus sign*/ } #plus-min .x-tool-toggle{ background-posi

如何更改字段集组件的展开/折叠图标?默认情况下,它是一个倒三角形箭头,我想将它设置为“+”/“-”?使用“itemCls”


谢谢

修改折叠按钮的css(在此处
背景位置

这里是我的css:

#plus-min.x-panel-collapsed .x-tool-toggle{
    background-position: 0 -240px !important; /*the plus sign*/
}
#plus-min .x-tool-toggle{
    background-position: 0 -255px !important; /*the minus sign*/
}
和我的字段集:

new Ext.form.FormPanel({
    renderTo : document.body,
    title : "asdasd",
    items :[{
            xtype:'fieldset',
            title: 'Plus Minus',
            collapsible: true,
            id : "plus-min",
            html : "asd",
            height : 100
        }]
});

修改折叠按钮的css(在此处
背景位置

这里是我的css:

#plus-min.x-panel-collapsed .x-tool-toggle{
    background-position: 0 -240px !important; /*the plus sign*/
}
#plus-min .x-tool-toggle{
    background-position: 0 -255px !important; /*the minus sign*/
}
和我的字段集:

new Ext.form.FormPanel({
    renderTo : document.body,
    title : "asdasd",
    items :[{
            xtype:'fieldset',
            title: 'Plus Minus',
            collapsible: true,
            id : "plus-min",
            html : "asd",
            height : 100
        }]
});