1. #1
    Sencha User
    Join Date
    Sep 2011
    Location
    Maddaloni (CE) Italy
    Posts
    74
    Vote Rating
    1
    ing.amdangelo is on a distinguished road

      0  

    Default Unanswered: tbtext align center

    Unanswered: tbtext align center


    Is it possible put on the center of the toolbar a tbtext ??
    Ing theMAdPumpkin

  2. #2
    Sencha - Community Support Team friend's Avatar
    Join Date
    Apr 2011
    Posts
    895
    Answers
    106
    Vote Rating
    27
    friend has a spectacular aura about friend has a spectacular aura about

      0  

    Default


    You can override the default layout of the Toolbar, like so:

    Code:
    Ext.create('Ext.window.Window', {
      dockedItems: [{
        xtype: 'toolbar',
        dock: 'top',
        layout: {
          type: 'hbox',
          pack: 'center'
        },
        items: [{
          xtype: 'tbtext',
          text: 'Some Centered Text'
        }]
      }],
      height: 250,
      title: 'Toolbar Test',
      width: 350
    }).show();

Thread Participants: 1