datatables.net-buttons-zf
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -45,10 +45,13 @@ /*! Foundation integration for DataTables' Buttons | ||
tag: 'div', | ||
className: 'dt-button-collection dropdown-pane is-open button-group stacked' | ||
className: 'dropdown-pane is-open button-group stacked' | ||
} : | ||
{ | ||
tag: 'ul', | ||
className: 'dt-button-collection f-dropdown open dropdown-pane is-open', | ||
className: 'f-dropdown open dropdown-pane is-open', | ||
closeButton: false, | ||
button: { | ||
tag: 'li', | ||
className: 'small' | ||
className: 'small', | ||
active: 'active', | ||
disabled: 'disabled' | ||
}, | ||
@@ -72,3 +75,4 @@ buttonLiner: { | ||
tag: 'a', | ||
className: 'button small' | ||
className: 'button small', | ||
active: 'secondary' | ||
}, | ||
@@ -78,3 +82,19 @@ buttonLiner: { | ||
}, | ||
collection: collection | ||
collection: collection, | ||
splitWrapper: { | ||
tag: 'div', | ||
className: 'dt-btn-split-wrapper button-group', | ||
closeButton: false, | ||
}, | ||
splitDropdown: { | ||
tag: 'button', | ||
text: '', | ||
className: 'button dt-btn-split-drop dropdown arrow-only', | ||
closeButton: false, | ||
}, | ||
splitDropdownButton: { | ||
tag: 'button', | ||
className: 'dt-btn-split-drop-button button small', | ||
closeButton: false | ||
} | ||
} | ||
@@ -84,6 +104,17 @@ } ); | ||
DataTable.ext.buttons.collection.className = 'buttons-collection dropdown'; | ||
DataTable.ext.buttons.collection.className = 'dropdown'; | ||
$(document).on('buttons-popover.dt', function () { | ||
var notButton = false; | ||
$('.dtsp-panesContainer').each(function() { | ||
if(!$(this).is('button')){ | ||
notButton = true; | ||
} | ||
}); | ||
if(notButton){ | ||
$('.dtsp-panesContainer').removeClass('button-group stacked') | ||
} | ||
}); | ||
return DataTable.Buttons; | ||
})); |
{ | ||
"name": "datatables.net-buttons-zf", | ||
"version": "2.2.0", | ||
"description": "Buttons for DataTables with styling for [Zurb Foundation](http://foundation.zurb.com/)", | ||
"description": "Buttons for DataTables with styling for [Foundation](https://get.foundation/)", | ||
"main": "js/buttons.foundation.js", | ||
"style": "css/buttons.foundation.css", | ||
"types": "./types/buttons.foundation.d.ts", | ||
"version": "2.2.1", | ||
"files": [ | ||
"js/buttons.foundation.js", | ||
"css/buttons.foundation.css" | ||
"css/**/*.css", | ||
"js/**/*.js", | ||
"types/**/*.d.ts" | ||
], | ||
"main": "js/buttons.foundation.js", | ||
"style": "css/buttons.foundation.css", | ||
"keywords": [ | ||
"buttons", | ||
"Buttons", | ||
"Column Visibility", | ||
"csv", | ||
"excel", | ||
"pdf", | ||
"csv", | ||
"column visibility", | ||
"print", | ||
"DataTables", | ||
"Foundation", | ||
"Datatables", | ||
"jQuery", | ||
"table", | ||
"Foundation" | ||
"filter", | ||
"sort" | ||
], | ||
"homepage": "https://datatables.net", | ||
"bugs": "https://datatables.net/forums", | ||
"license": "MIT", | ||
"dependencies": { | ||
"datatables.net-buttons": ">=2.0.1", | ||
"datatables.net-zf": ">=1.11.3", | ||
"jquery": ">=1.7" | ||
}, | ||
"moduleType": [ | ||
"globals", | ||
"amd", | ||
"node" | ||
], | ||
"ignore": [ | ||
"composer.json", | ||
"datatables.json", | ||
"package.json" | ||
], | ||
"author": { | ||
@@ -30,7 +46,5 @@ "name": "SpryMedia Ltd", | ||
}, | ||
"dependencies": { | ||
"jquery": ">=1.7", | ||
"datatables.net-zf": ">=1.10.9", | ||
"datatables.net-buttons": ">=1.0.3" | ||
}, | ||
"homepage": "https://datatables.net", | ||
"bugs": "https://datatables.net/forums", | ||
"license": "MIT", | ||
"repository": { | ||
@@ -37,0 +51,0 @@ "type": "git", |
@@ -1,4 +0,4 @@ | ||
# Buttons for DataTables with styling for [Zurb Foundation](http://foundation.zurb.com/) | ||
# Buttons for DataTables with styling for [Foundation](https://get.foundation/) | ||
This package contains distribution files required to style [Buttons extension](https://datatables.net/extensions/buttons) for [DataTables](https://datatables.net/) with styling for [Zurb Foundation](http://foundation.zurb.com/). | ||
This package contains a built distribution of the [Buttons extension](https://datatables.net/extensions/buttons) for [DataTables](https://datatables.net/) with styling for [Foundation](https://get.foundation/). | ||
@@ -20,7 +20,13 @@ The Buttons extension for DataTables provides a common set of options, API methods and styling to display buttons on a page that will interact with a DataTable. It also provides plug-ins for file export (HTML5 and Flash), print view and column visibility. Other libraries, such as Editor and Select also provide buttons specific to their use cases. | ||
ES3 Syntax | ||
``` | ||
var $ = require( 'jquery' ); | ||
require( 'datatables.net-buttons-zf' )( window, $ ); | ||
var dt = require( 'datatables.net-buttons-zf' )( window, $ ); | ||
``` | ||
ES6 Syntax | ||
``` | ||
import 'datatables.net-buttons-zf' | ||
``` | ||
### bower | ||
@@ -36,3 +42,3 @@ | ||
Full documentation of the DataTables options, API and plug-in interface are available on the DOCS_LINK. The site also contains information on the wide variety of plug-ins that are available for DataTables, which can be used to enhance and customise your table even further. | ||
Full documentation and examples for Buttons can be found [on the website](https://datatables.net/extensions/buttons). | ||
@@ -53,1 +59,2 @@ | ||
This software is released under the [MIT license](//datatables.net/license). You are free to use, modify and distribute this software, but all copyright information must remain. | ||
Sorry, the diff of this file is not supported yet
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
22332
8
450
58
1
Updateddatatables.net-zf@>=1.11.3