The English default texts for screen readers (see AriaTextsIf).

The table uses AriaTexts.create(tableOptions.ariaTexts): your functions replace the defaults one by one.

Example

const texts = AriaTexts.create({ copied: (n: number) => `${n} Zellen kopiert` });
texts.copied(3); // "3 Zellen kopiert"
texts.filtered(42); // "42 rows" (default)

Since

1.1.91

Hierarchy

  • AriaTexts

Implements

Constructors

Methods

  • Announced after a value was marked in a batch edit (or set back).

    Parameters

    • pendingCount: number

      the number of pending cells

    Returns string

    default: "3 changes not saved", "No unsaved changes"

    Since

    1.1.96

  • Announced when rows cannot be moved: the table is sorted or filtered (managed row drag), or the row cannot move further (optional – AriaTexts has a default).

    Returns string

    default: "Rows cannot be moved while the table is sorted or filtered"

    Since

    1.1.95

  • Announced after rows were moved by drag and drop or Ctrl+Alt+↑/↓ (optional – AriaTexts has a default).

    Parameters

    • position: number

      1-based position of the first moved row

    • rowCount: number

      number of displayed rows

    Returns string

    default: "Row moved to position 7 of 20"

    Since

    1.1.95

  • Announced after a column was sorted (header double click, Enter on a header cell, TableApi.sortByColumn).

    Parameters

    • columnLabel: string

      the header label of the column

    • sortState: SortState

      the new sort state, "" = unsorted

    Returns string

    default: "Sorted by Total, descending", "Sorting of Total removed"