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

(cherry picked from commit 5b3b163ce0)
This commit is contained in:
Stephan de Wit 2026-02-13 11:32:16 +01:00 committed by Franco Fichtner
parent 6859f279d3
commit 0c849634f2

View file

@ -831,11 +831,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,
@ -1167,6 +1162,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'});