Results 1 to 3 of 3

Thread: Title and Ext.Img in Tolbar

  1. #1
    Sencha User
    Join Date
    Feb 2011
    Location
    Dsseldorf, 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    Use Titlebar instead of Toolbar and give the child items the align config (left/right are values)
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Feb 2011
    Location
    Dsseldorf, 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
  •