Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

datatables.net-buttons-bs4

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datatables.net-buttons-bs4 - npm Package Compare versions

Comparing version 2.3.6 to 2.4.0

73

js/buttons.bootstrap4.js
/*! Bootstrap integration for DataTables' Buttons
* ©2016 SpryMedia Ltd - datatables.net/license
* © SpryMedia Ltd - datatables.net/license
*/

@@ -25,3 +25,3 @@

if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
module.exports = function (root, $) {

@@ -57,3 +57,3 @@ if ( ! root ) {

$.extend( true, DataTable.Buttons.defaults, {
$.extend(true, DataTable.Buttons.defaults, {
dom: {

@@ -64,7 +64,13 @@ container: {

button: {
className: 'btn btn-secondary'
className: 'btn btn-secondary',
active: 'active'
},
collection: {
tag: 'div',
className: 'dropdown-menu',
action: {
dropHtml: ''
},
container: {
tag: 'div',
className: 'dropdown-menu dt-button-collection'
},
closeButton: false,

@@ -74,31 +80,36 @@ button: {

className: 'dt-button dropdown-item',
active: 'active',
disabled: 'disabled'
active: 'dt-button-active',
disabled: 'disabled',
spacer: {
className: 'dropdown-divider',
tag: 'hr'
}
}
},
splitWrapper: {
tag: 'div',
className: 'dt-btn-split-wrapper btn-group',
closeButton: false,
},
splitDropdown: {
tag: 'button',
text: '',
className: 'btn btn-secondary dt-btn-split-drop dropdown-toggle dropdown-toggle-split',
closeButton: false,
align: 'split-left',
splitAlignClass: 'dt-button-split-left'
},
splitDropdownButton: {
tag: 'button',
className: 'dt-btn-split-drop-button btn btn-secondary',
closeButton: false
}
split: {
action: {
tag: 'a',
className: 'btn btn-secondary dt-button-split-drop-button',
closeButton: false
},
dropdown: {
tag: 'button',
dropHtml: '',
className:
'btn btn-secondary dt-button-split-drop dropdown-toggle dropdown-toggle-split',
closeButton: false,
align: 'split-left',
splitAlignClass: 'dt-button-split-left'
},
wrapper: {
tag: 'div',
className: 'dt-button-split btn-group',
closeButton: false
}
}
},
buttonCreated: function ( config, button ) {
return config.buttons ?
$('<div class="btn-group"/>').append(button) :
button;
buttonCreated: function (config, button) {
return config.buttons ? $('<div class="btn-group"/>').append(button) : button;
}
} );
});

@@ -105,0 +116,0 @@ DataTable.ext.buttons.collection.className += ' dropdown-toggle';

/*! Bootstrap integration for DataTables' Buttons
* ©2016 SpryMedia Ltd - datatables.net/license
* © SpryMedia Ltd - datatables.net/license
*/
!function(e){var o,a;"function"==typeof define&&define.amd?define(["jquery","datatables.net-bs4","datatables.net-buttons"],function(t){return e(t,window,document)}):"object"==typeof exports?(o=require("jquery"),a=function(t,n){n.fn.dataTable||require("datatables.net-bs4")(t,n),n.fn.dataTable.Buttons||require("datatables.net-buttons")(t,n)},"undefined"!=typeof window?module.exports=function(t,n){return t=t||window,n=n||o(t),a(t,n),e(n,0,t.document)}:(a(window,o),module.exports=e(o,window,window.document))):e(jQuery,window,document)}(function(e,t,n,o){"use strict";var a=e.fn.dataTable;return e.extend(!0,a.Buttons.defaults,{dom:{container:{className:"dt-buttons btn-group flex-wrap"},button:{className:"btn btn-secondary"},collection:{tag:"div",className:"dropdown-menu",closeButton:!1,button:{tag:"a",className:"dt-button dropdown-item",active:"active",disabled:"disabled"}},splitWrapper:{tag:"div",className:"dt-btn-split-wrapper btn-group",closeButton:!1},splitDropdown:{tag:"button",text:"",className:"btn btn-secondary dt-btn-split-drop dropdown-toggle dropdown-toggle-split",closeButton:!1,align:"split-left",splitAlignClass:"dt-button-split-left"},splitDropdownButton:{tag:"button",className:"dt-btn-split-drop-button btn btn-secondary",closeButton:!1}},buttonCreated:function(t,n){return t.buttons?e('<div class="btn-group"/>').append(n):n}}),a.ext.buttons.collection.className+=" dropdown-toggle",a.ext.buttons.collection.rightAlignClassName="dropdown-menu-right",a});
!function(o){var e,a;"function"==typeof define&&define.amd?define(["jquery","datatables.net-bs4","datatables.net-buttons"],function(t){return o(t,window,document)}):"object"==typeof exports?(e=require("jquery"),a=function(t,n){n.fn.dataTable||require("datatables.net-bs4")(t,n),n.fn.dataTable.Buttons||require("datatables.net-buttons")(t,n)},"undefined"==typeof window?module.exports=function(t,n){return t=t||window,n=n||e(t),a(t,n),o(n,0,t.document)}:(a(window,e),module.exports=o(e,window,window.document))):o(jQuery,window,document)}(function(o,t,n,e){"use strict";var a=o.fn.dataTable;return o.extend(!0,a.Buttons.defaults,{dom:{container:{className:"dt-buttons btn-group flex-wrap"},button:{className:"btn btn-secondary",active:"active"},collection:{action:{dropHtml:""},container:{tag:"div",className:"dropdown-menu dt-button-collection"},closeButton:!1,button:{tag:"a",className:"dt-button dropdown-item",active:"dt-button-active",disabled:"disabled",spacer:{className:"dropdown-divider",tag:"hr"}}},split:{action:{tag:"a",className:"btn btn-secondary dt-button-split-drop-button",closeButton:!1},dropdown:{tag:"button",dropHtml:"",className:"btn btn-secondary dt-button-split-drop dropdown-toggle dropdown-toggle-split",closeButton:!1,align:"split-left",splitAlignClass:"dt-button-split-left"},wrapper:{tag:"div",className:"dt-button-split btn-group",closeButton:!1}}},buttonCreated:function(t,n){return t.buttons?o('<div class="btn-group"/>').append(n):n}}),a.ext.buttons.collection.className+=" dropdown-toggle",a.ext.buttons.collection.rightAlignClassName="dropdown-menu-right",a});

@@ -7,4 +7,4 @@ {

"style": "css/buttons.bootstrap4.css",
"types": "./types/types.d.ts",
"version": "2.3.6",
"types": "./types/buttons.bootstrap4.d.ts",
"version": "2.4.0",
"files": [

@@ -32,4 +32,4 @@ "css/**/*.css",

"dependencies": {
"datatables.net-buttons": ">=2.2.3",
"datatables.net-bs4": ">=1.12.1",
"datatables.net-buttons": ">=2.3.6",
"datatables.net-bs4": ">=1.13.4",
"jquery": ">=1.7"

@@ -36,0 +36,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc