Skip to main content
Version: 1.x

@microsoft/fast-foundation > ColumnDefinition > headerCellFocusTargetCallback

ColumnDefinition.headerCellFocusTargetCallback property

Callback function that returns the element to focus in a custom cell. When headerCellInternalFocusQueue is false this function is called when the cell is first focused to immediately move focus to a cell element, for example a cell that is a checkbox could move focus directly to the checkbox. When headerCellInternalFocusQueue is true this function is called when the user hits Enter or F2

Signature:
headerCellFocusTargetCallback?: (cell: DataGridCell) => HTMLElement;