Skip to content

Commit

Permalink
bb964802bde5810291ba683d3b158799591cd678 Fix: Bulma integration had t…
Browse files Browse the repository at this point in the history
…wo `<nav>` elements for the pagination control

New: `DataTable.ext.classes.paging.nav` option to add classes to the `<nav>` element for the pagination control.

Sync to source repo @bb964802bde5810291ba683d3b158799591cd678
  • Loading branch information
dtbuild committed Aug 26, 2024
1 parent 9a82f21 commit 931458e
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion datatables.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
],
"src-repo": "http://github.com/DataTables/DataTablesSrc",
"last-tag": "2.1.4",
"last-sync": "7f32828322eabfab3529968255944c9bc2dbd771"
"last-sync": "bb964802bde5810291ba683d3b158799591cd678"
}
9 changes: 7 additions & 2 deletions js/dataTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,8 @@
active: 'current',
button: 'dt-paging-button',
container: 'dt-paging',
disabled: 'disabled'
disabled: 'disabled',
nav: ''
}
} );

Expand Down Expand Up @@ -13157,7 +13158,11 @@

var host = $('<div/>')
.addClass(settings.oClasses.paging.container + (opts.type ? ' paging_' + opts.type : ''))
.append('<nav>');
.append(
$('<nav>')
.attr('aria-label', 'pagination')
.addClass(settings.oClasses.paging.nav)
);
var draw = function () {
_pagingDraw(settings, host.children(), opts);
};
Expand Down
2 changes: 1 addition & 1 deletion js/dataTables.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dataTables.min.mjs

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions js/dataTables.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,8 @@ $.extend( DataTable.ext.classes, {
active: 'current',
button: 'dt-paging-button',
container: 'dt-paging',
disabled: 'disabled'
disabled: 'disabled',
nav: ''
}
} );

Expand Down Expand Up @@ -13104,7 +13105,11 @@ DataTable.feature.register( 'paging', function ( settings, opts ) {

var host = $('<div/>')
.addClass(settings.oClasses.paging.container + (opts.type ? ' paging_' + opts.type : ''))
.append('<nav>');
.append(
$('<nav>')
.attr('aria-label', 'pagination')
.addClass(settings.oClasses.paging.nav)
);
var draw = function () {
_pagingDraw(settings, host.children(), opts);
};
Expand Down

0 comments on commit 931458e

Please sign in to comment.