Method: Axlsx::Worksheet#row_style
- Defined in:
- lib/axlsx/workbook/worksheet/worksheet.rb
#row_style(index, style, options = {}) ⇒ Object
Note:
You can also specify the style in the add_row call
Set the style for cells in a specific row
484 485 486 487 488 |
# File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 484 def row_style(index, style, ={}) offset = .delete(:col_offset) || 0 cells = cols[(offset..-1)].map { |column| column[index] }.flatten.compact cells.each { |cell| cell.style = style } end |