x-spreadsheet
x-spreadsheet copied to clipboard
Edit styling for table headers
Is there any option to add r edit styling for the table headers (e.g. 'A','B', 'C' etc.)?

you can add prop in options and change his source.

Where is the documentation for this?
Anyone?
Its in the table.js file
const` tableGridStyle = {
fillStyle: '#fff',
lineWidth: thinLineWidth,
strokeStyle: '#e7eaf3',
};
function tableFixedHeaderStyle() {
return {
textAlign: 'center',
textBaseline: 'middle',
font: `500 ${npx(12)}px Source Sans Pro`,
fillStyle: '#585757',
lineWidth: thinLineWidth(),
strokeStyle: '#e7eaf3',
};
}`
Hope this helps.
So what is this supposed to mean? What are the prop name that goes into options?
// If you need to override the default options, you can set the override
const options = {
tableGridStyle : {},
tableHeaderStyle: {}
}
const s = new Spreadsheet("#data-table", options)
It seems there's no options to change header text, at current time?