【问题标题】:extjs: fieldset-change collapse iconextjs:字段集更改折叠图标
【发布时间】:2011-08-22 23:01:19
【问题描述】:

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

谢谢!

【问题讨论】:

    标签: extjs icons collapse fieldset


    【解决方案1】:

    修改折叠按钮的css(在这里background-position

    这里是我的 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
            }]
    });
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-09-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-01
      • 1970-01-01
      • 2017-09-10
      • 1970-01-01
      相关资源
      最近更新 更多