kazuCellNamefunction
A cell as a screen reader names it: "row 3, column 5".
Import it
import { kazuCellName } from "@johnmorrisdotca/kazu/draw";
Definition
function kazuCellName(size: number, index: number, language: KazuLanguage): string
Parameters
| Name | Type | Description |
|---|---|---|
size | number | The supported square grid side length. |
index | number | The zero-based row-major cell index. |
language | KazuLanguage | The native English or Japanese display language. |
Returns
string
A cell as a screen reader names it: "row 3, column 5".
Examples
import { kazuCellName } from "@johnmorrisdotca/kazu/draw";
console.log(kazuCellName(4,0,"en"));row 1, column 1What it prints (run when this page was built)