Skip to content

Commit

Permalink
7099db386b1f372bd2fc6db24739dcf34ec9f802 WIP: Improvements to dropdow…
Browse files Browse the repository at this point in the history
…n icon to allow any button to have one

Sync to source repo @7099db386b1f372bd2fc6db24739dcf34ec9f802
  • Loading branch information
dtbuild committed Oct 10, 2024
1 parent d1c3e72 commit 57aa3aa
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 16 deletions.
3 changes: 3 additions & 0 deletions css/buttons.semanticui.css
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ div.dt-button-collection.ui.dropdown div.dt-button-collection-title {
font-size: 1rem;
padding: 1em 0.75em 0.5em;
}
div.dt-button-collection.ui.dropdown i.dropdown.icon::before {
content: "\f0da" !important;
}
div.dt-button-collection.ui.dropdown.columns div.ui.basic.buttons span.dt-button-spacer {
background: transparent !important;
border: none;
Expand Down
2 changes: 1 addition & 1 deletion css/buttons.semanticui.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion datatables.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
],
"src-repo": "http://github.com/DataTables/Buttons",
"last-tag": "3.1.2",
"last-sync": "70c236b07d2fb7c41887b178e59c10c3258fe9ab"
"last-sync": "7099db386b1f372bd2fc6db24739dcf34ec9f802"
}
10 changes: 4 additions & 6 deletions js/buttons.semanticui.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,11 @@ $.extend(true, DataTable.Buttons.defaults, {
tag: 'button',
active: 'active',
className: 'dt-button ui button',
spacerClass: 'dt-button ui button'
spacerClass: 'dt-button ui button',
dropHtml: '<i class="dropdown icon"></i>',
dropClass: ''
},
collection: {
action: {
dropHtml: '<i class="dropdown icon"></i>'
},
container: {
tag: 'div',
className: 'ui dropdown active visible dt-button-collection',
Expand All @@ -92,8 +91,7 @@ $.extend(true, DataTable.Buttons.defaults, {
},
dropdown: {
tag: 'span',
className: 'dt-button-split-drop dropdown icon',
dropHtml: '<i class="dropdown icon"></i>'
className: 'dt-button-split-drop dropdown icon'
},
wrapper: {
tag: 'div',
Expand Down
2 changes: 1 addition & 1 deletion js/buttons.semanticui.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/buttons.semanticui.min.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Bootstrap integration for DataTables' Buttons
* © SpryMedia Ltd - datatables.net/license
*/
import jQuery from"jquery";import DataTable from"datatables.net-se";import Buttons from"datatables.net-buttons";let $=jQuery;$.extend(!0,DataTable.Buttons.defaults,{dom:{container:{className:"dt-buttons ui buttons"},button:{tag:"button",active:"active",className:"dt-button ui button",spacerClass:"dt-button ui button"},collection:{action:{dropHtml:'<i class="dropdown icon"></i>'},container:{tag:"div",className:"ui dropdown active visible dt-button-collection",content:{className:"menu"}},closeButton:!1,button:{tag:"div",className:"dt-button item",active:"dt-button-active",spacer:{className:"divider",tag:"div"}},split:{action:{tag:"div",className:""},dropdown:{tag:"span",className:"dt-button-split-drop dropdown icon",dropHtml:'<i class="dropdown icon"></i>'},wrapper:{tag:"div",className:"dt-button-split"}}},split:{action:{tag:"button",className:"dt-button-split-drop-button ui button"},dropdown:{tag:"button",className:"ui floating button dt-button-split-drop dropdown icon"},wrapper:{tag:"div",className:"dt-button-split buttons"}}}}),$(document).on("buttons-popover.dt",function(){var t=!1;$(".dtsp-panesContainer").each(function(){$(this).is("button")||(t=!0)}),t&&$(".dtsp-panesContainer").removeClass("vertical buttons")});export default DataTable;
import jQuery from"jquery";import DataTable from"datatables.net-se";import Buttons from"datatables.net-buttons";let $=jQuery;$.extend(!0,DataTable.Buttons.defaults,{dom:{container:{className:"dt-buttons ui buttons"},button:{tag:"button",active:"active",className:"dt-button ui button",spacerClass:"dt-button ui button",dropHtml:'<i class="dropdown icon"></i>',dropClass:""},collection:{container:{tag:"div",className:"ui dropdown active visible dt-button-collection",content:{className:"menu"}},closeButton:!1,button:{tag:"div",className:"dt-button item",active:"dt-button-active",spacer:{className:"divider",tag:"div"}},split:{action:{tag:"div",className:""},dropdown:{tag:"span",className:"dt-button-split-drop dropdown icon"},wrapper:{tag:"div",className:"dt-button-split"}}},split:{action:{tag:"button",className:"dt-button-split-drop-button ui button"},dropdown:{tag:"button",className:"ui floating button dt-button-split-drop dropdown icon"},wrapper:{tag:"div",className:"dt-button-split buttons"}}}}),$(document).on("buttons-popover.dt",function(){var t=!1;$(".dtsp-panesContainer").each(function(){$(this).is("button")||(t=!0)}),t&&$(".dtsp-panesContainer").removeClass("vertical buttons")});export default DataTable;
10 changes: 4 additions & 6 deletions js/buttons.semanticui.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@ $.extend(true, DataTable.Buttons.defaults, {
tag: 'button',
active: 'active',
className: 'dt-button ui button',
spacerClass: 'dt-button ui button'
spacerClass: 'dt-button ui button',
dropHtml: '<i class="dropdown icon"></i>',
dropClass: ''
},
collection: {
action: {
dropHtml: '<i class="dropdown icon"></i>'
},
container: {
tag: 'div',
className: 'ui dropdown active visible dt-button-collection',
Expand All @@ -49,8 +48,7 @@ $.extend(true, DataTable.Buttons.defaults, {
},
dropdown: {
tag: 'span',
className: 'dt-button-split-drop dropdown icon',
dropHtml: '<i class="dropdown icon"></i>'
className: 'dt-button-split-drop dropdown icon'
},
wrapper: {
tag: 'div',
Expand Down

0 comments on commit 57aa3aa

Please sign in to comment.