x-spreadsheet icon indicating copy to clipboard operation
x-spreadsheet copied to clipboard

Edit styling for table headers

Open bjorngrundtalf opened this issue 4 years ago • 6 comments

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

image

bjorngrundtalf avatar Jul 06 '21 12:07 bjorngrundtalf

you can add prop in options and change his source.

图片

zsjun avatar Jul 07 '21 09:07 zsjun

Where is the documentation for this?

dgdecondux avatar Jul 07 '21 17:07 dgdecondux

Anyone?

xeroxstar avatar Jul 23 '21 12:07 xeroxstar

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.

dataraptor avatar Jul 24 '21 12:07 dataraptor

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)

livingstonef avatar Sep 21 '21 13:09 livingstonef

It seems there's no options to change header text, at current time?

ssddi456 avatar Feb 14 '22 08:02 ssddi456