labels on <Tally>. Values are formatted with the grid’s format context.
Format context
The format context drives number, currency, percent and date formatting, search over formatted text, and the default labels.
Build one with
createFormatContext(overrides) and pass it as format to useGrid or createGrid. useGrid recreates the grid when the format context changes and carries the current view over.
accounts.tsx
new Intl.NumberFormat(locale).resolvedOptions().numberingSystem gives the numbering system a locale uses by default.
createArraySource takes the same format option for the comparisons and search it runs. Pass the same context to the source and the grid.
Digits
Number values typed in cell editors or read from CSV accept Latin, Arabic-Indic and Eastern Arabic-Indic digits, and the Arabic decimal and thousands separators. The filter bar parses ASCII digits only. Arabic-Indic digits typed there match as text.Labels
labels takes a partial TallyLabels. It is merged over the default labels, which are built from the grid’s format context.
konten.tsx
numberingSystem. Your overrides receive plain numbers and format them themselves. defaultLabels exports the English defaults.
sorted receives a list of { column, direction }. grouped and filtered receive undefined when the group or the filter is cleared. The announcements are read by screen readers through a live region. See Accessibility.
Column labels, enum option labels and the grid label come from your schema and props, not from labels.
See RTL for right-to-left layouts.