28 lines
548 B
JavaScript
28 lines
548 B
JavaScript
|
/**
|
||
|
*/
|
||
|
Ox.Tabbar = function(options, self) {
|
||
|
|
||
|
var self = self || {},
|
||
|
that = new Ox.Bar({
|
||
|
size: 20
|
||
|
}, self)
|
||
|
.defaults({
|
||
|
selected: 0,
|
||
|
tabs: []
|
||
|
})
|
||
|
.options(options || {})
|
||
|
.addClass('OxTabbar');
|
||
|
|
||
|
Ox.ButtonGroup({
|
||
|
buttons: self.options.tabs,
|
||
|
group: true,
|
||
|
selectable: true,
|
||
|
selected: self.options.selected,
|
||
|
size: 'medium',
|
||
|
style: 'tab',
|
||
|
}).appendTo(that);
|
||
|
|
||
|
return that;
|
||
|
|
||
|
};
|