开发者

Spacer between tabs in Extjs

How to add spac开发者_如何转开发er element or someting like that between tabs? I need to seperate them.


Just use margin at tabConfig. If you want 20px left side of tab, try tabConfig: { xtype: 'tab', margin: '0 0 0 20' }


{
   xtype: 'tbfill'
}

or

{
    xtype: 'tbspacer'
}

or

{
    xtype: 'tbseparator'
}


There's no way through the component to do that, you'll have to override the tab's margin in CSS, e.g.:

ul.x-tab-strip li {
   margin-left: 8px;
}

If you only need it to apply to certain tabs then give them ids or special classes and adjust the CSS accordingly.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜