Automatically refresh the table when the data prop changes
bordered
Attribute
bordered
Type
boolean
Default
false
Required
false
Description
Puts borders between table data cells
columns
Attribute
undefined
Type
string[]
Default
undefined
Required
false
Description
Can be an array or an array of objects. This needs to be set with JS when the component is in an HTML context
data
Attribute
undefined
Type
any[]
Default
undefined
Required
false
Description
Can 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
Attribute
fixed-header
Type
boolean
Default
false
Required
false
Description
Fixed headers also require a set height
from
Attribute
undefined
Type
HTMLTableElement
Default
undefined
Required
false
Description
Reference 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
Attribute
full-height
Type
boolean
Default
true
Required
false
Description
The table container will stretch to the full height of the viewport
height
Attribute
height
Type
string
Default
undefined
Required
false
Description
Set height with CSS units (e.g. 400px)
offsetY
Attribute
offset-y
Type
string
Default
undefined
Required
false
Description
Offset to stretch table to fill available vertical space aside from reserved space for toolbars, etc. (e.g., 230px)
pagination
Attribute
pagination
Type
boolean | object
Default
undefined
Required
false
Description
Set to true to show pagination, configure extended options with the JS object (Docs)
resizable
Attribute
resizable
Type
boolean
Default
false
Required
false
Description
Allows columns to be resized
search
Attribute
search
Type
boolean
Default
false
Required
false
Description
Shows a built-in table filter search field
searchPlaceholder
Attribute
search-placeholder
Type
string
Default
'Search'
Required
false
Description
Placeholder text for built-in table search input
sort
Attribute
sort
Type
boolean
Default
false
Required
false
Description
Allows simple sorting on columns. More complex data needs to have custom rules in the columns.sort.compare object
tableClassName
Attribute
table-class-name
Type
string
Default
undefined
Required
false
Description
Adds a className specifically to the rendered <table> element vs. the component wrapper