({id, columns, children, ...otherProps}: RowProps<T>)
| 89 | } |
| 90 | |
| 91 | export function Row<T>({id, columns, children, ...otherProps}: RowProps<T>) { |
| 92 | let {selectionBehavior, allowsDragging} = useTableOptions(); |
| 93 | |
| 94 | return ( |
| 95 | <AriaRow id={id} {...otherProps}> |
| 96 | {allowsDragging && ( |
| 97 | <Cell> |
| 98 | <Button slot="drag" className="drag-button"> |
| 99 | <GripVertical /> |
| 100 | </Button> |
| 101 | </Cell> |
| 102 | )} |
| 103 | {selectionBehavior === 'toggle' && ( |
| 104 | <Cell |
| 105 | ///- begin highlight -/// |
| 106 | focusMode="child" |
| 107 | allowsArrowNavigation |
| 108 | ///- end highlight -/// |
| 109 | > |
| 110 | <Checkbox slot="selection" /> |
| 111 | </Cell> |
| 112 | )} |
| 113 | <Collection items={columns}>{children}</Collection> |
| 114 | </AriaRow> |
| 115 | ); |
| 116 | } |
| 117 | |
| 118 | export function TableBody<T>(props: TableBodyProps<T>) { |
| 119 | return <AriaTableBody {...props} />; |
nothing calls this directly
no test coverage detected