Results 1 to 4 of 4

Thread: button style of filefield in a buttonGroup

  1. #1
    Sencha Premium Member
    Join Date
    May 2012
    Posts
    15

    Default Answered: button style of filefield in a buttonGroup

    Hi, i have trouble getting the button style of filefield the same as others in a buttonGroup. I tried to override the style through buttonConfig but got no luck. When i set baseCls to '', then the button looks almost like other buttons - but when i mouse over it, the style doesn't look right.


    Code:
    {			xtype : 'buttongroup',
    			title : 'Actions',
    			columns : 1,
    			defaults : {
    				xtype : 'button',
    				scale : 'small',
    				width : 210,
    				textAlign : 'left'
    			},
    			items : [{
    				text : 'Button'
    
    			}, {
    				xtype : 'filefield',
    				buttonOnly : true,
    				buttonConfig : {
    					width : 210,
    					text : 'Browse File',
    					textAlign : 'left',
    					baseCls : 'x-btn'
    				}
    			}]
    		}

  2. Hi--

    Try adding ui: 'default-toolbar' to you buttonConfig...I think that should do the trick.

    Thanks!
    Joel

  3. #2
    Sencha User joel.watson's Avatar
    Join Date
    Nov 2014
    Posts
    3,120
    Answers
    446

    Default

    Hi--

    Try adding ui: 'default-toolbar' to you buttonConfig...I think that should do the trick.

    Thanks!
    Joel

  4. #3
    Sencha Premium Member
    Join Date
    May 2012
    Posts
    15

    Default

    Thank you so much !! it works !!!

  5. #4
    Sencha User joel.watson's Avatar
    Join Date
    Nov 2014
    Posts
    3,120
    Answers
    446

    Default

    Quote Originally Posted by mf913 View Post
    Thank you so much !! it works !!!
    Excellent, glad to hear it!

    Thanks
    Joel

Similar Threads

  1. Button is not displaying in fileField
    By innovista1 in forum Ext: Q&A
    Replies: 1
    Last Post: 4 Dec 2013, 7:02 AM
  2. [INFOREQ] [4.1.2a] filefield button text
    By Hanterdro in forum Ext:Bugs
    Replies: 2
    Last Post: 15 Oct 2012, 2:53 AM
  3. Replies: 4
    Last Post: 17 Jun 2011, 3:58 PM
  4. How to align button inside buttongroup (ButtonGroup)
    By daniel_r in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 3 Apr 2011, 5:17 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •