开发者

Spacer between tabs in Extjs

开发者 https://www.devze.com 2023-01-26 12:36 出处:网络
How to add spac开发者_如何转开发er element or someting like that between tabs? I need to seperate them.Just use margin at tabConfig.

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

精彩评论

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