Method: Spreadsheet::Row#update_format
- Defined in:
- lib/spreadsheet/row.rb
#update_format(idx, opts = {}) ⇒ Object
141 142 143 144 145 146 147 148 149 150 151 |
# File 'lib/spreadsheet/row.rb', line 141 def update_format(idx, opts = {}) if @formats[idx] @formats[idx].update_format(opts) else fmt = default_format.clone fmt.font = fmt.font.clone @formats[idx] = fmt.update_format(opts) end @worksheet&.add_format @formats[idx] @worksheet&.row_updated @idx, self end |