Skip to main content

Global configuration

If your site contains many tables, it is possible to define common properties that will be applied to all through the <InitTables /> provider.

function App() {
return (
<InitTables
breakpoint={BREAKPOINT.SM}
headerRenderer={DefaultHeaderCell}
cellRenderer={DefaultTableCell}
baseRowClasses='cursor-pointer'
baseCellPadding={{
vertical: '10px',
horizontal: '10px'
}}>
<GlobalConfigurationTable />
</InitTables>
);
}
info

You can always override a property of <InitTables /> by redefining it on <Table />

Global properties