本页还没有译文
本页 19 段还没译成Português (BR),下面显示的是英文原文。cell_getSelectionStartHandler
还没翻译译自英文(tanstack.com)本页 19 段都还没译
function cell_getSelectionStartHandler<TFeatures, TData, TValue>(cell, _contextDocument?): (e) => void;Defined in: features/cell-selection/cellSelectionFeature.utils.ts:1379
Creates a handler that begins a selection at this cell.
Follows header_getResizeHandler: the enable check is resolved once outside
the returned closure and guarded again inside it, the document is injectable
for SSR and cross-document rendering, and the document-level mouseup
listener is attached here so a drag released outside the table still ends.
Type Parameters
TFeatures
TFeatures extends TableFeatures
TData
TData extends RowData
TValue
TValue extends unknown = unknown
Parameters
cell
Cell<TFeatures, TData, TValue>
_contextDocument?
Document
Returns
(e) => void
Example
<td onMouseDown={cell.getSelectionStartHandler()} />AI 翻译查看英文原文