Results 1 to 3 of 3

Thread: Title and Ext.Img in Tolbar

  1. #1
    Sencha User
    Join Date
    Feb 2011
    Location
    Düsseldorf, Germany
    Posts
    594
    Answers
    35
    Vote Rating
    33
      0  

    Default Title and Ext.Img in Tolbar

    Inside a toolbar (Ext.Toolbar) I need to put an Image in front of the title and have the title aligned left.

    So far I have set the config to:
    Code:
    config:{
     centered: false,
     title: "myTitle",
     items:[{
       xtype: 'img',
       width: 20,
       height: 20,
       ...
     }]
    }
    But this only shows the title on the left and the img right behind the title.
    any idea how to switch the position ?

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1382
      0  

    Default

    Use Titlebar instead of Toolbar and give the child items the align config (left/right are values)
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Feb 2011
    Location
    Düsseldorf, Germany
    Posts
    594
    Answers
    35
    Vote Rating
    33
      0  

    Default Using titlebar

    I tried the titlebar, but the text is always middle aligned. Is there a flag to left align the title?

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
  •