Excel cells can be styled using a JSON object parameter while filling up the cell values or with getCell and getRange methods. Let us see working of getCell and getRange methods first. To get a reference of a cell user can use getCell method, the output of this method let user see value of the cell or style the cell. This method can be chained with style method for styling cells. Similar to getCell, oxml.js also provide getRange method which let user style a range of cells. However, this method does not allow let user know the value of cells. We will understand more these method in below example.
For styling user have to use a JSON object with some predefined attributes. This JSON can be used with different methods
for filling the value or get cell / range reference. While filling the values this is an additional parameter passed
to any of the methods used. Methods supporting styling while filling the values are: