Skip to content

Commit

Permalink
Improve headers accessibility
Browse files Browse the repository at this point in the history
Set the headersFocusability property to "All" by default allowing the  Row and column headers to be accessible via keyboard.
  • Loading branch information
OS-giulianasilva committed Jun 26, 2023
1 parent 134b58c commit 173a751
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ namespace OSFramework.DataGrid.Configuration.Grid {
let provider: DataGrid.Types.IGridProviderConfigs = {
autoGenerateColumns: this.autoGenerateColumns,
allowMerging: 'Cells', // allow mergeCells API. This option does nothing, without the proper column config.
headersFocusability: wijmo.grid.HeadersFocusability.All, // by default, Row and Column headers are focusable via keyboard.
isReadOnly: this.allowEdit === false,
validateEdits: this.validateEdits,
showSelectedHeaders: 'All' // highlight row/column header
Expand Down
1 change: 1 addition & 0 deletions src/OSFramework/DataGrid/Types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ namespace OSFramework.DataGrid.Types {
export interface IGridProviderConfigs {
allowMerging: string;
autoGenerateColumns: boolean;
headersFocusability: wijmo.grid.HeadersFocusability;
isReadOnly: boolean;
showSelectedHeaders: string;
validateEdits: boolean;
Expand Down

0 comments on commit 173a751

Please sign in to comment.