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.
精彩评论