-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
002b66e9e24af5c176af543ac8757d2f957ba7f0 New: `-init buttons.buttons.…
…dropIcon` - ability to show a dropdown icon per button to indicate to the end user that further interaction will be required when the button is activated. ae9dc00000609463d471e1273d3878ec0fadb903 3.2.0-dev version Sync to source repo @ae9dc00000609463d471e1273d3878ec0fadb903
- Loading branch information
dtbuild
committed
Oct 11, 2024
1 parent
19ce3a4
commit 7b0531a
Showing
7 changed files
with
21 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/*! Bulma integration for DataTables' Buttons | ||
* © SpryMedia Ltd - datatables.net/license | ||
*/ | ||
import jQuery from"jquery";import DataTable from"datatables.net-bm";import Buttons from"datatables.net-buttons";let $=jQuery;$.extend(!0,DataTable.Buttons.defaults,{dom:{container:{className:"dt-buttons field is-grouped"},button:{className:"button",active:"is-active",disabled:"is-disabled"},collection:{action:{tag:"div",className:"dropdown-content",dropHtml:""},button:{tag:"a",className:"dt-button dropdown-item",active:"dt-button-active",disabled:"is-disabled",spacer:{className:"dropdown-divider",tag:"hr"}},closeButton:!1,container:{className:"dt-button-collection dropdown dropdown-menu",content:{className:"dropdown-content"}}},split:{action:{tag:"button",className:"dt-button-split-drop-button button",closeButton:!1},dropdown:{tag:"button",dropHtml:'<i class="fa fa-angle-down" aria-hidden="true"></i>',className:"button",closeButton:!1,align:"split-left",splitAlignClass:"dt-button-split-left"},wrapper:{tag:"div",className:"dt-button-split dropdown-trigger buttons has-addons",closeButton:!1}}},buttonCreated:function(t,a){return t.buttons&&(t._collection=$('<div class="dropdown-menu"/>').append(t._collection),$(a).append('<span class="icon is-small"><i class="fa fa-angle-down" aria-hidden="true"></i></span>')),a}});export default DataTable; | ||
import jQuery from"jquery";import DataTable from"datatables.net-bm";import Buttons from"datatables.net-buttons";let $=jQuery;$.extend(!0,DataTable.Buttons.defaults,{dom:{container:{className:"dt-buttons field is-grouped"},button:{className:"button",active:"is-active",disabled:"is-disabled",dropHtml:'<span class="icon is-small"><i class="fa fa-angle-down" aria-hidden="true"></i></span>',dropClass:""},collection:{action:{tag:"div",className:"dropdown-content"},button:{tag:"a",className:"dt-button dropdown-item",active:"dt-button-active",disabled:"is-disabled",spacer:{className:"dropdown-divider",tag:"hr"}},closeButton:!1,container:{className:"dt-button-collection dropdown dropdown-menu",content:{className:"dropdown-content"}}},split:{action:{tag:"button",className:"dt-button-split-drop-button button",closeButton:!1},dropdown:{tag:"button",className:"button",closeButton:!1,align:"split-left",splitAlignClass:"dt-button-split-left"},wrapper:{tag:"div",className:"dt-button-split dropdown-trigger buttons has-addons",closeButton:!1}}},buttonCreated:function(t,o){return t.buttons&&(t._collection=$('<div class="dropdown-menu"/>').append(t._collection)),o}});export default DataTable; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters