Sha256: 9ffe99527e3e86f3635c4e91d15f645d527f9f3023b5e879e19476be7c0a975b
Contents?: true
Size: 788 Bytes
Versions: 2
Compression:
Stored size: 788 Bytes
Contents
# coding: utf-8 CaseRunner.current :list_events ThinReports::Report.generate_file(CaseRunner.output_file) do use_layout(CaseRunner.layout_file) do |config| config.list do events.on :page_footer_insert do |e| e.section.item(:event_name).value(':page_footer_insert') end events.on :footer_insert do |e| e.section.item(:event_name).value(':footer_insert') end events.on :page_finalize do |e| e.list.header.item(:event_name).value(':page_finalize') e.page.item(:event_name).value(':page_finalize') end end end start_new_page 2.times do |t| page.list(:default).add_row :row_name => t + 1 end start_new_page 8.times do |t| page.list(:default).add_row :row_name => t + 1 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
thinreports-0.7.6 | test/case/list_events/list_events.rb |
thinreports-0.7.5 | test/case/list_events/list_events.rb |