1

フィールドセットコンポーネントの展開/折りたたみアイコンを変更するには? デフォルトでは逆三角形の矢印ですが、「+」/「-」に設定したいですか? 「itemCls」を使用しますか?

ありがとう!

4

1 に答える 1

4

折りたたみボタンの 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
        }]
});
于 2011-05-12T12:09:02.943 に答える