Skip to main content
Version: 1.x

@microsoft/fast-foundation > ColumnDefinition > cellFocusTargetCallback

ColumnDefinition.cellFocusTargetCallback property

Callback function that returns the element to focus in a custom cell. When cellInternalFocusQueue 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 cellInternalFocusQueue is true this function is called when the user hits Enter or F2

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