Bootgrid: allow multi word tooltips (#9656)

(cherry picked from commit 0642e17bc5)
This commit is contained in:
Matthias Kaduk 2026-01-29 11:47:53 +01:00 committed by Franco Fichtner
parent bdb19f9a9d
commit 0f2b0c54b5

View file

@ -1124,8 +1124,8 @@ class UIBootgrid {
}
const title = typeof command?.title === "function"
? `title=${command?.title()}`
: `title=${command?.title}` ?? '';
? `title="${command?.title()}"`
: `title="${command?.title}"` ?? '';
const $element = $(`
<button type="button" class="btn btn-xs ${key === 'add' ? 'btn-primary' : 'btn-default'} command-${key} bootgrid-tooltip" ${title}>
@ -1648,8 +1648,8 @@ class UIBootgrid {
if (has_option) {
let title = typeof command?.title === "function"
? `title=${command?.title(cell)}`
: `title=${command?.title}` ?? '';
? `title="${command?.title(cell)}"`
: `title="${command?.title}"` ?? '';
html.push(`
<button type="button"