Export of static and conditional styles in cells, rows and columns.

Styles mentioned at left side of following list specified in

Conversely cell/row/column styles in Excel xlsx file or cell/row/column properties in javascript workbook are imported to grid as rowData.pq_cellstyle[ dataIndx ], rowData.pq_rowstyle and column.style.

css style of cell/row/column in grid property of corresponding cell/row/column in javascript workbook
background: stringbgColor: string
border: stringborder: {left: string, top: string, right: string, bottom: string}
border-top: stringborder: { top: string }
border-right: stringborder: { right: string }
border-bottom: stringborder: {bottom: string}
border-left: stringborder: {left: string}
color: stringcolor: string
font-family: stringfont: string
font-size: stringfontSize: number
font-weight when 'bold'bold = true
font-style when 'italic'italic = true
text-decoration when 'underline'underline = true
white-space when 'normal'cell.wrap = true
prop of cell/row/column in grid property of corresponding cell/row/column in javascript workbook
align: 'left' | 'center' | 'right'align
valign: 'top' | 'center' | 'bottom'valign

Ways to add Excel export ready styles in grid

Styles can be specified in rowData.pq_cellstyle[ dataIndx ], rowData.pq_rowstyle and column.style

In this example, both column.render and formulas are shown for demonstration purpose, however it's not necessary to use both of them. Either one of them is sufficient to add conditional styles.