27 lines
592 B
JavaScript
27 lines
592 B
JavaScript
|
|
(function($, DataTables){
|
|
|
|
$.extend( true, DataTables.Buttons.defaults, {
|
|
dom: {
|
|
container: {
|
|
className: 'dt-buttons ui-buttonset'
|
|
},
|
|
button: {
|
|
className: 'dt-button ui-button ui-state-default ui-button-text-only',
|
|
disabled: 'ui-state-disabled',
|
|
active: 'ui-state-active'
|
|
},
|
|
buttonLiner: {
|
|
tag: 'span',
|
|
className: 'ui-button-text'
|
|
}
|
|
}
|
|
} );
|
|
|
|
DataTables.ext.buttons.collection.text = function ( dt ) {
|
|
return dt.i18n('buttons.collection', 'Collection <span class="ui-button-icon-primary ui-icon ui-icon-triangle-1-s"/>');
|
|
};
|
|
|
|
|
|
})(jQuery, jQuery.fn.dataTable);
|