(props: PokemonListViewProps)
| 39 | } |
| 40 | |
| 41 | export function PokemonListView(props: PokemonListViewProps) { |
| 42 | let {items = defaultItems, dragAndDropHooks} = props; |
| 43 | |
| 44 | return ( |
| 45 | <ListView |
| 46 | styles={style({height: 250, width: 250})} |
| 47 | aria-label="Pokemon list" |
| 48 | selectionMode="multiple" |
| 49 | items={items} |
| 50 | renderEmptyState={renderEmptyState} |
| 51 | dragAndDropHooks={dragAndDropHooks}> |
| 52 | {item => ( |
| 53 | <ListViewItem textValue={item.name}> |
| 54 | <Text slot="label">{item.name}</Text> |
| 55 | <Text slot="description">{item.type}</Text> |
| 56 | </ListViewItem> |
| 57 | )} |
| 58 | </ListView> |
| 59 | ); |
| 60 | } |
nothing calls this directly
no outgoing calls
no test coverage detected