2013-05-01 4 views

답변

2

사용 buttonConfig 구성 옵션을 감사드립니다. 거기에 iconCls을 지정할 수 있습니다. 그렇게하는 방법입니다. this example

{ 
    xtype: 'filefield', 
    name: 'photo', 
    fieldLabel: 'Photo', 
    labelWidth: 50, 
    msgTarget: 'side', 
    allowBlank: false, 
    anchor: '100%', 
    buttonConfig: { 
     text: 'Hello', 
     iconCls: 'test-class' 
    } 
} 
+0

감사합니다. 하지만 이미지로 버튼을 바꿀 수 있습니까? 따라서 사용자가 이미지를 클릭하면 찾아 볼 수 있습니다. 이걸 확인해주세요. [link] (http://s23.postimg.org/822h6vtuz/Screen_Shot_2013_05_01_at_7_33_56_AM.png) – user2337881

+0

고마워! 나를 구 했어! :-디 – Lawrence