(props)
| 296 | |
| 297 | describe('tab keyboard navigation', () => { |
| 298 | function TabNavTable(props) { |
| 299 | let {dragAndDropHooks} = useDragAndDrop({ |
| 300 | getItems: keys => [...keys].map(key => ({'text/plain': `${key}`})) |
| 301 | }); |
| 302 | return ( |
| 303 | <TableView |
| 304 | aria-label="Tab mode table" |
| 305 | keyboardNavigationBehavior="tab" |
| 306 | selectionMode="multiple" |
| 307 | dragAndDropHooks={dragAndDropHooks} |
| 308 | {...props}> |
| 309 | <TableHeader> |
| 310 | <Column |
| 311 | isRowHeader |
| 312 | menuItems={ |
| 313 | <MenuSection> |
| 314 | <MenuItem> |
| 315 | <Text slot="label">Filter</Text> |
| 316 | </MenuItem> |
| 317 | </MenuSection> |
| 318 | }> |
| 319 | Name |
| 320 | </Column> |
| 321 | <Column |
| 322 | menuItems={ |
| 323 | <MenuSection> |
| 324 | <MenuItem> |
| 325 | <Text slot="label">Filter</Text> |
| 326 | </MenuItem> |
| 327 | </MenuSection> |
| 328 | }> |
| 329 | Type |
| 330 | </Column> |
| 331 | <Column>Notes</Column> |
| 332 | </TableHeader> |
| 333 | <TableBody> |
| 334 | <Row id="1" textValue="Foo 1"> |
| 335 | <Cell>Foo 1</Cell> |
| 336 | <Cell>Bar 1</Cell> |
| 337 | <Cell> |
| 338 | <input type="text" aria-label="Foo 1 notes" /> |
| 339 | </Cell> |
| 340 | </Row> |
| 341 | <Row id="2" textValue="Foo 2"> |
| 342 | <Cell>Foo 2</Cell> |
| 343 | <Cell>Bar 2</Cell> |
| 344 | <Cell> |
| 345 | <input type="text" aria-label="Foo 2 notes" /> |
| 346 | </Cell> |
| 347 | </Row> |
| 348 | <Row id="3" textValue="Foo 3"> |
| 349 | <Cell>Foo 3</Cell> |
| 350 | <Cell>Bar 3</Cell> |
| 351 | <Cell> |
| 352 | <input type="text" aria-label="Foo 3 notes" /> |
| 353 | </Cell> |
| 354 | </Row> |
| 355 | </TableBody> |
nothing calls this directly
no test coverage detected