Sha256: ebb8b068fb5bd24a4489ffe472703e9419dc3f7e1e330223f9c1152fbff2efbd

Contents?: true

Size: 1.11 KB

Versions: 3

Compression:

Stored size: 1.11 KB

Contents

# frozen_string_literal: true

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

3 entries across 3 versions & 1 rubygems

Version Path
thinreports-0.10.2 examples/tblock_overflow/tblock_overflow.rb
thinreports-0.10.1 examples/tblock_overflow/tblock_overflow.rb
thinreports-0.10.0 examples/tblock_overflow/tblock_overflow.rb