bootgrid: swap order of custom commands placement making sure they participate in command binding

This commit is contained in:
Stephan de Wit 2026-02-13 11:41:00 +01:00
parent 2e9ac2defb
commit 7bcfd7d7c5

View file

@ -817,11 +817,6 @@ class UIBootgrid {
this._renderFooterCommands();
// if there are custom commands defined, inject them here
if (this.customCommands !== null) {
this.customCommands.appendTo($(`#${this.id} > .tabulator-footer > .tabulator-footer-contents`));
}
// swap page counter and paginator around (old look & feel).
// we hook in before tableBuilt, but after dataLoading
// since we know the footer is rendered at this point,
@ -1142,6 +1137,11 @@ class UIBootgrid {
$footerPrimary.after($commandContainer);
// if there are custom commands defined, inject them here
if (this.customCommands !== null) {
this.customCommands.appendTo($footerSecondary);
}
// bind tooltips
$(`#${this.id} > .tabulator-footer`).find('.bootgrid-tooltip').each((i, el) => {
$(el).tooltip({container: 'body', trigger: 'hover'});