source: public/vendors/dataTable/Buttons-1.6.1/js/buttons.bootstrap.js@ bdda09f

develop
Last change on this file since bdda09f was 7304c7f, checked in by beratkjufliju <kufliju@…>, 3 years ago

added user authentication, create & forgot password methods and blades

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/*! Bootstrap integration for DataTables' Buttons
2 * ©2016 SpryMedia Ltd - datatables.net/license
3 */
4
5(function( factory ){
6 if ( typeof define === 'function' && define.amd ) {
7 // AMD
8 define( ['jquery', 'datatables.net-bs', 'datatables.net-buttons'], function ( $ ) {
9 return factory( $, window, document );
10 } );
11 }
12 else if ( typeof exports === 'object' ) {
13 // CommonJS
14 module.exports = function (root, $) {
15 if ( ! root ) {
16 root = window;
17 }
18
19 if ( ! $ || ! $.fn.dataTable ) {
20 $ = require('datatables.net-bs')(root, $).$;
21 }
22
23 if ( ! $.fn.dataTable.Buttons ) {
24 require('datatables.net-buttons')(root, $);
25 }
26
27 return factory( $, root, root.document );
28 };
29 }
30 else {
31 // Browser
32 factory( jQuery, window, document );
33 }
34}(function( $, window, document, undefined ) {
35'use strict';
36var DataTable = $.fn.dataTable;
37
38
39$.extend( true, DataTable.Buttons.defaults, {
40 dom: {
41 container: {
42 className: 'dt-buttons btn-group'
43 },
44 button: {
45 className: 'btn btn-default'
46 },
47 collection: {
48 tag: 'ul',
49 className: 'dropdown-menu',
50 button: {
51 tag: 'li',
52 className: 'dt-button',
53 active: 'active',
54 disabled: 'disabled'
55 },
56 buttonLiner: {
57 tag: 'a',
58 className: ''
59 }
60 }
61 }
62} );
63
64DataTable.ext.buttons.collection.text = function ( dt ) {
65 return dt.i18n('buttons.collection', 'Collection <span class="caret"/>');
66};
67
68
69return DataTable.Buttons;
70}));
Note: See TracBrowser for help on using the repository browser.