About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Data table
Preview the data table component with the React live demo. For detailed code usage documentation, see the Storybooks for each framework below.
Documentation
Live demo
DataTable
Name | Protocol | Port | Rule | Attached Groups | Status |
---|---|---|---|---|---|
Load Balancer 3 | HTTP | 3000 | Round robin | Kevins VM Groups | Disabled |
Load Balancer 1 | HTTP | 443 | Round robin | Maureens VM Groups | Starting |
Load Balancer 2 | HTTP | 80 | DNS delegation | Andrews VM Groups | Active |
Load Balancer 6 | HTTP | 3000 | Round robin | Marcs VM Groups | Disabled |
Load Balancer 4 | HTTP | 443 | Round robin | Mels VM Groups | Starting |
Load Balancer 5 | HTTP | 80 | DNS delegation | Ronjas VM Groups | Active |
<DataTable rows={rowData} headers={headerData}>{({ rows, headers, getHeaderProps, getTableProps }) => (<TableContainer title="DataTable"><Table {...getTableProps()}><TableHead><TableRow>{headers.map((header) => (<TableHeader {...getHeaderProps({ header })}>{header.header}</TableHeader>))}</TableRow></TableHead><TableBody>{rows.map((row) => (<TableRow key={row.id}>{row.cells.map((cell) => (<TableCell key={cell.id}>{cell.value}</TableCell>))}</TableRow>))}</TableBody></Table></TableContainer>)}</DataTable>
Sample data
const headerData = [{header: 'Name',key: 'name',},{header: 'Protocol',key: 'protocol',},