<DataTabletitle="Repositories"data={[{id: 1,name: 'codeql-dca-worker',type: 'internal',securityFeatures: {dependabot: ['alerts', 'security updates'],},},{id: 2,name: 'aegir',type: 'public',securityFeatures: {dependabot: ['alerts'],},},{id: 3,name: 'strapi',type: 'public',securityFeatures: {dependabot: [],},},]}columns={[{header: 'Repository',field: 'name',rowHeader: true,},{header: 'Type',field: 'type',renderCell: row => {return <Label>{uppercase(row.type)}</Label>},},{header: 'Dependabot',renderCell: row => {return row.securityFeatures.dependabot.length > 0 ? (<LabelGroup>{row.securityFeatures.dependabot.map(feature => {return <Label key={feature}>{uppercase(feature)}</Label>})}</LabelGroup>) : null},},]}/>
Name | Type | Default | Description |
---|---|---|---|
aria-describedby | string | Provide an id to an element which uniquely describes this table | |
aria-labelledby | string | Provide an id to an element which uniquely labels this table | |
data | Array<Data> | Provide a collection of the rows which will be rendered inside of the table | |
columns | Array<Column<Data>> | Provide the columns for the table and the fields in `data` to which they correspond | |
cellPadding | 'condensed' | 'normal' | 'spacious' | Specify the amount of space that should be available around the contents of a cell |
Name | Type | Default | Description |
---|---|---|---|
aria-describedby | string | Provide an id to an element which uniquely describes this table | |
aria-labelledby | string | Provide an id to an element which uniquely labels this table | |
children | React.ReactNode | ||
cellPadding | 'condensed' | 'normal' | 'spacious' | Specify the amount of space that should be available around the contents of a cell |
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode |
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode |
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode |
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode |
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | ||
scope | string | Provide the scope for a table cell, useful for defining a row header using `scope="row"` |
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode |
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | ||
id Required | string |
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | ||
id Required | string |