openmedialibrary/static/js/sectionButtons.js

28 lines
638 B
JavaScript
Raw Normal View History

2014-05-04 17:26:43 +00:00
'use strict';
oml.ui.sectionButtons = function() {
var ui = oml.user.ui,
that = Ox.ButtonGroup({
buttons: [
{id: 'books', title: Ox._('Books')},
{id: 'music', title: Ox._('Music'), disabled: true},
{id: 'movies', title: Ox._('Movies'), disabled: true}
],
style: 'squared',
selectable: true,
value: 'books'
}).css({
float: 'left',
margin: '4px'
})
.bindEvent({
change: function(data) {
// ...
}
});
return that;
};