[SpreadJS] Spacing in Column header

Posted by: 16pa1a0576 on 12 May 2021, 2:56 am EST

    • Post Options:
    • Link

    Posted 12 May 2021, 2:56 am EST

    Hi, I am using SpreadJS with React. I have to apply spacing between cell border and text in column header. I have applied cellPadding but it is not working.

    Can you help me with this ?

    Thanks.

  • Posted 13 May 2021, 5:54 am EST

    Hi,

    We are sorry but at our end, the cellpadding method is working properly. Could you please refer to the following code snippet and attached sample that demonstrates how we could apply cell padding in the column header? and if the issue persists please modify the sample to replicate the issue so that we could investigate it further and assist you accordingly.

    
    sheet
        .getCell(0, 0, GC.Spread.Sheets.SheetArea.colHeader)
        .cellPadding("2 40 2 2");
    
    

    sample: https://codesandbox.io/s/dazzling-dewdney-54ihj?file=/src/index.js:191-283

    API References:

    cellPadding: https://www.grapecity.com/spreadjs/docs/v14/online/SpreadJS~GC.Spread.Sheets.CellRange~cellPadding.html

    Regards

    Avinash

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels