Skip to content

Table

Show design guidelines

HTML React Angular
Study Project Licenses Actions
ABC-123 ABC 2 Edit
ABC-456 ABC 10 Edit
DEF-123 DEF 102 Edit
<certara-table full-height="false" sort="true">
<table>
<thead>
<tr>
<th>Study</th>
<th>Project</th>
<th>Licenses</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr>
<td>ABC-123</td>
<td>ABC</td>
<td>2</td>
<td>
<certara-link href="#">Edit</certara-link>
</td>
</tr>
<tr>
<td>ABC-456</td>
<td>ABC</td>
<td>10</td>
<td>
<certara-link href="#">Edit</certara-link>
</td>
</tr>
<tr>
<td>DEF-123</td>
<td>DEF</td>
<td>102</td>
<td>
<certara-link href="#">Edit</certara-link>
</td>
</tr>
</tbody>
</table>
</certara-table>
import { CertaraLink, CertaraTable } from '@certara/certara-ui-react';
<CertaraTable fullHeight={false} sort={true}>
<table>
<thead>
<tr>
<th>Study</th>
<th>Project</th>
<th>Licenses</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr>
<td>ABC-123</td>
<td>ABC</td>
<td>2</td>
<td>
<CertaraLink href="#">Edit</CertaraLink>
</td>
</tr>
<tr>
<td>ABC-456</td>
<td>ABC</td>
<td>10</td>
<td>
<CertaraLink href="#">Edit</CertaraLink>
</td>
</tr>
<tr>
<td>DEF-123</td>
<td>DEF</td>
<td>102</td>
<td>
<CertaraLink href="#">Edit</CertaraLink>
</td>
</tr>
</tbody>
</table>
</CertaraTable>
// In your module (e.g., app.module.ts)
import { CertaraUiAngularModule } from '@certara/certara-ui-angular';
@NgModule({
imports: [CertaraUiAngularModule]
})
// In your template:
<certara-table full-height="false" sort="true">
<table>
<thead>
<tr>
<th>Study</th>
<th>Project</th>
<th>Licenses</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr>
<td>ABC-123</td>
<td>ABC</td>
<td>2</td>
<td>
<certara-link href="#">Edit</certara-link>
</td>
</tr>
<tr>
<td>ABC-456</td>
<td>ABC</td>
<td>10</td>
<td>
<certara-link href="#">Edit</certara-link>
</td>
</tr>
<tr>
<td>DEF-123</td>
<td>DEF</td>
<td>102</td>
<td>
<certara-link href="#">Edit</certara-link>
</td>
</tr>
</tbody>
</table>
</certara-table>

autoRefresh

Attributeauto-refresh
Typeboolean
Defaulttrue
Requiredfalse
DescriptionAutomatically refresh the table when the data prop changes

bordered

Attributebordered
Typeboolean
Defaultfalse
Requiredfalse
DescriptionPuts borders between table data cells

columns

Attributeundefined
Typestring[]
Defaultundefined
Requiredfalse
DescriptionCan be an array or an array of objects. This needs to be set with JS when the component is in an HTML context

data

Attributeundefined
Typeany[]
Defaultundefined
Requiredfalse
DescriptionCan be an array of arrays, or an array of objects. This needs to be set with JS when the component is in an HTML context

fixedHeader

Attributefixed-header
Typeboolean
Defaultfalse
Requiredfalse
DescriptionFixed headers also require a set height

from

Attributeundefined
TypeHTMLTableElement
Defaultundefined
Requiredfalse
DescriptionReference to an existing HTML <table> element to use as the data source. GridJS will read the data from this table. Alternatively, place a <table> element as a child of <certara-table> and it will be auto-detected. See: https://gridjs.io/docs/examples/from

fullHeight

Attributefull-height
Typeboolean
Defaulttrue
Requiredfalse
DescriptionThe table container will stretch to the full height of the viewport

height

Attributeheight
Typestring
Defaultundefined
Requiredfalse
DescriptionSet height with CSS units (e.g. 400px)

offsetY

Attributeoffset-y
Typestring
Defaultundefined
Requiredfalse
DescriptionOffset to stretch table to fill available vertical space aside from reserved space for toolbars, etc. (e.g., 230px)

pagination

Attributepagination
Typeboolean | object
Defaultundefined
Requiredfalse
DescriptionSet to true to show pagination, configure extended options with the JS object (Docs)

resizable

Attributeresizable
Typeboolean
Defaultfalse
Requiredfalse
DescriptionAllows columns to be resized
Attributesearch
Typeboolean
Defaultfalse
Requiredfalse
DescriptionShows a built-in table filter search field

searchPlaceholder

Attributesearch-placeholder
Typestring
Default'Search'
Requiredfalse
DescriptionPlaceholder text for built-in table search input

sort

Attributesort
Typeboolean
Defaultfalse
Requiredfalse
DescriptionAllows simple sorting on columns. More complex data needs to have custom rules in the columns.sort.compare object

tableClassName

Attributetable-class-name
Typestring
Defaultundefined
Requiredfalse
DescriptionAdds a className specifically to the rendered <table> element vs. the component wrapper

There are no events available for this component

NameSignatureDescription
refresh() => Promise<void>Force a re-render of the table
NameDescription
Default slot for an optional HTML <table> element to use as the data source
filtersSlot for center-aligned toolbar content
left-actionsSlot for left-aligned toolbar content
right-actionsSlot for right-aligned toolbar content