1. #1
    Sencha User
    Join Date
    Feb 2011
    Posts
    13
    Vote Rating
    0
    mrtndimitrov is on a distinguished road

      0  

    Default position the toolbar title on the left

    position the toolbar title on the left


    Hi guys,

    How can I position a toolbar's title on the left instead of the default middle?

    Thanks,

    Martin

  2. #2
    Sencha - Training Team mrsunshine's Avatar
    Join Date
    Sep 2008
    Location
    Germany - Darmstadt
    Posts
    691
    Vote Rating
    12
    mrsunshine will become famous soon enough

      0  

    Default


    you can set the toolbar property "titleCls" to a custom css class wich have "text-align: left" instead of "text-align: center"

  3. #3
    Sencha User
    Join Date
    Feb 2011
    Posts
    13
    Vote Rating
    0
    mrtndimitrov is on a distinguished road

      0  

    Default


    Yes, thanks. I came to the same conclusion.

    I was just playing with it and I ended up setting the titleCls to:
    Code:
    titleCls: 'x-toolbar-title my-custom-class'
    since I want to keep the default size, color and so on of the title

    Regards,

    Martin

  4. #4
    Sencha User
    Join Date
    Oct 2011
    Posts
    26
    Vote Rating
    0
    pd1980 is on a distinguished road

      0  

    Default Thanks for the help

    Thanks for the help


    I was looking for the same thing. Found it here!

Similar Threads

  1. [3.1] Ext Panel Override to allow on side title headers (title on left or right)
    By syscobra in forum Ext 3.x: User Extensions and Plugins
    Replies: 3
    Last Post: 22 Mar 2010, 8:47 AM
  2. get element on given position ( top left )
    By emredagli in forum Ext 3.x: Help & Discussion
    Replies: 9
    Last Post: 18 Mar 2010, 2:43 AM
  3. How to set Ext.Window left and top position
    By dekit in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 24 Sep 2008, 3:05 AM
  4. position the tabs right or left
    By p.v.param in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 16 May 2008, 2:35 AM

Thread Participants: 2