Skip to content

headerTooltip

A tooltip on the header, to say more than the title can.

Typestring
Defaultnot set
Live update (update())Yes — give the columns again (update({ columns }))
Declared inpackages/core/src/columns/defs.ts

It shows when the pointer rests on the header (after the grid’s tooltips delay) and as soon as the keyboard focus reaches it. Give it already translated. To draw it yourself, name a part in ui.tooltip.

import { createGrid } from '@dzgrid/dom';
import { EN } from '@dzgrid/dom/locales/en';
type Bee = { id: string; hive: string; honey: number };
createGrid<Bee>(document.getElementById('hives')!, {
rows: [{ id: 'h1', hive: 'Clover hill', honey: 12.5 }],
columns: [
{ id: 'hive', header: 'Hive' },
{ id: 'honey', header: 'Honey', type: 'number', headerTooltip: 'Kilograms this season' },
],
getRowId: (r) => r.id,
messages: EN,
});

Rest the pointer on the Honey title.