({cell, state}: {cell: any; state: any})
| 208 | } |
| 209 | |
| 210 | export function TableCheckboxCell({cell, state}: {cell: any; state: any}): JSX.Element { |
| 211 | let ref = useRef<HTMLTableCellElement | null>(null); |
| 212 | let {gridCellProps} = useTableCell({node: cell}, state, ref); |
| 213 | let {checkboxProps} = useTableSelectionCheckbox({key: cell.parentKey}, state); |
| 214 | |
| 215 | let inputRef = useRef(null); |
| 216 | let {inputProps} = useCheckbox(checkboxProps, useToggleState(checkboxProps), inputRef); |
| 217 | |
| 218 | return ( |
| 219 | <td {...gridCellProps} ref={ref}> |
| 220 | <input {...inputProps} /> |
| 221 | </td> |
| 222 | ); |
| 223 | } |
| 224 | |
| 225 | export function TableSelectAllCell({column, state}: {column: any; state: any}): JSX.Element { |
| 226 | let ref = useRef<HTMLTableCellElement | null>(null); |
nothing calls this directly
no test coverage detected