advisr-io / excel4node

Node module to allow for easy Excel file creation
MIT License
124 stars 18 forks source link

Add Borders to Entire Rows / Columns #83

Open madhaven opened 10 months ago

madhaven commented 10 months ago

Is your feature request related to a problem? Please describe. I want to border an entire Row. I tried accessing the row and adding a style:

    const wb = new xl.Workbook()
    const thinUnderline = wb.createStyle({
        border: { bottom: { style: 'thin', color: 'black' }}
    })
    ws.row(3).style(thinUnderline)

but it returns the following error: Error occurred in handler for 'test': TypeError: ws.row(...).style is not a function

Describe the solution you'd like I believe adding formatting to entire rows is not yet a feature that this library supports. I'm willing to contribute but I would need some guidance.

madhaven commented 10 months ago

I found exceljs to be a better alternative.