activeadmin-axlsx icon indicating copy to clipboard operation
activeadmin-axlsx copied to clipboard

Add config.xlsx_builder.output_header

Open baxang opened this issue 11 years ago • 2 comments

Hi,

It'd be great if the header row can be omitted by configuration. For example, setting true/false to config.xlsx_builder.output_header.

At the moment disabling header seems not possible so I simply add an after_filter to the xslx block:

after_filter do |sheet|
  sheet.rows.delete_at 0
end

baxang avatar Jul 30 '13 11:07 baxang

Hi @baxang

Ive added support for this in master. Header serialization can be turned off by specifying:

skip_header

in your builder configuration.

Can I ask you to have a go at what is on master an confirm that this meets your needs?

randym avatar Oct 12 '13 07:10 randym

@randym Thanks for the new feature. It seems exactly what I asked for. I'll try it ASAP.

baxang avatar Oct 13 '13 08:10 baxang