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 1534b5d commit 9e28f0a
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 15 deletions.
11 changes: 10 additions & 1 deletion css/buttons.jqueryui.css
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,23 @@ div.dt-button-collection .dt-button {
width: 100%;
box-sizing: border-box;
text-align: left;
display: block;
float: none;
margin-right: 0;
margin-bottom: 4px;
display: flex;
float: none;
justify-content: space-between;
align-items: center;
}
div.dt-button-collection .dt-button .ui-icon {
margin-right: -9px;
}
div.dt-button-collection .dt-button-split {
width: 100%;
}
div.dt-button-collection .dt-button-split button:last-child {
display: block;
}
div.dt-button-collection.fixed {
position: fixed;
display: block;
Expand Down
2 changes: 1 addition & 1 deletion css/buttons.jqueryui.min.css

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

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"
}
8 changes: 3 additions & 5 deletions js/buttons.jqueryui.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ var DataTable = $.fn.dataTable;
$.extend(true, DataTable.Buttons.defaults, {
dom: {
collection: {
action: {
dropHtml: '<span class="ui-button-icon-primary ui-icon ui-icon-triangle-1-s"/>'
},
button: {
active: 'dt-button-active'
}
Expand All @@ -73,7 +70,9 @@ $.extend(true, DataTable.Buttons.defaults, {
liner: {
tag: 'span',
className: ''
}
},
dropHtml: '<span class="ui-button-icon-primary ui-icon ui-icon-triangle-1-s"/>',
dropClass: ''
},
split: {
action: {
Expand All @@ -82,7 +81,6 @@ $.extend(true, DataTable.Buttons.defaults, {
},
dropdown: {
tag: 'button',
dropHtml: '<span class="ui-button-icon-primary ui-icon ui-icon-triangle-1-s"/>',
className: 'dt-button-split-drop ui-button ui-corner-right'
},
wrapper: {
Expand Down
2 changes: 1 addition & 1 deletion js/buttons.jqueryui.min.js

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

Loading

0 comments on commit 9e28f0a

Please sign in to comment.