Sha256: f601d515e6e542261077af7ac91900ab88f0df14e7f7033a910dc78cf2601aee

Contents?: true

Size: 1.09 KB

Versions: 5

Compression:

Stored size: 1.09 KB

Contents

# coding: utf-8

example :tblock_overflow, 'Control overflowing the Tblock' do
  report = Thinreports::Report.new layout: layout_filename
  report.start_new_page do |page|
    page.values(truncate: 'The string overflowing from the area will be truncated', 
                truncate_ja: '領域から溢れたテキストは切り捨てられます。', 
                truncate_m: 'The string overflowing from the area will be truncated')
  
    page.values(fit: 'The string overflowing from the area will be reduced', 
                fit_ja: '領域から溢れたテキストは縮小されます。', 
                fit_m: '複数行モードでも、領域から溢れたテキストは自動的に縮小され折り返して表示されます。')
    
    page.values(expand: 'If a string was overflowed, a box will be expanded automatically', 
                expand_ja: 'テキストが溢れた場合、ボックスが自動的に拡張されます。', 
                expand_m: 'If a string was overflowed, a box will be expanded automatically')
  end
  
  report.generate filename: output_filename
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
thinreports-0.9.1 examples/tblock_overflow/tblock_overflow.rb
thinreports-0.9.0 examples/tblock_overflow/tblock_overflow.rb
thinreports-0.8.2 examples/tblock_overflow/tblock_overflow.rb
thinreports-0.8.1 examples/tblock_overflow/tblock_overflow.rb
thinreports-0.8.0 examples/tblock_overflow/tblock_overflow.rb