Bootgrid: allow multi word tooltips (#9656)

This commit is contained in:
Matthias Kaduk 2026-01-29 11:47:53 +01:00 committed by GitHub
parent 87445129bf
commit 0642e17bc5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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"