| 1 |
--- |
| 2 |
id: Data list |
| 3 |
section: components |
| 4 |
--- |
| 5 |
|
| 6 |
import { Fragment, useState } from 'react'; |
| 7 |
|
| 8 |
import RhUiBranchFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-branch-fill-icon'; |
| 9 |
import RhMicronsCaretDownIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-caret-down-icon'; |
| 10 |
import RhMicronsCaretRightIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-caret-right-icon'; |
| 11 |
import RhUiEllipsisVerticalFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-ellipsis-vertical-fill-icon'; |
| 12 |
import { css } from '@patternfly/react-styles'; |
| 13 |
|
| 14 |
import RhUiCodeIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-code-icon'; |
| 15 |
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon'; |
| 16 |
import RhUiWarningFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-warning-fill-icon'; |
| 17 |
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon'; |
| 18 |
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon'; |
| 19 |
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper'; |
| 20 |
import { rows } from '@patternfly/react-core/dist/esm/demos/sampleData'; |
| 21 |
|
| 22 |
## Demos |
| 23 |
|
| 24 |
### Basic |
| 25 |
|
| 26 |
```ts file="DataList/examples/DataListBasic.tsx" isFullscreen |
| 27 |
|
| 28 |
``` |
| 29 |
|
| 30 |
### Expandable control in toolbar |
| 31 |
|
| 32 |
```ts file="DataList/examples/DataListExpandableControlInToolbar.tsx" isFullscreen |
| 33 |
|
| 34 |
``` |
| 35 |
|
| 36 |
### Actionable |
| 37 |
|
| 38 |
```ts file="DataList/examples/DataListActionable.tsx" isFullscreen |
| 39 |
|
| 40 |
``` |
| 41 |
|
| 42 |
### Static bottom pagination |
| 43 |
|
| 44 |
```ts file="DataList/examples/DataListStaticBottomPagination.tsx" isFullscreen |
| 45 |
|
| 46 |
``` |