summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2013-01-10 18:27:44 +0900
committerRandy Morgan <[email protected]>2013-01-10 18:27:44 +0900
commitcb73d9c5072c48ddc5b481dcf68e89fa5f8ae7a4 (patch)
treeebd98f39e27729dd8282d26af6a7c199fbeea9f6 /examples
parent58e8dd8a2b1a4a85ac77bf680914daf16eb695f1 (diff)
downloadcaxlsx-cb73d9c5072c48ddc5b481dcf68e89fa5f8ae7a4.tar.gz
caxlsx-cb73d9c5072c48ddc5b481dcf68e89fa5f8ae7a4.zip
update outline_level_rows and outline_level_columns example.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/example.rb13
1 files changed, 8 insertions, 5 deletions
diff --git a/examples/example.rb b/examples/example.rb
index 838a1fa3..66e8f4dc 100755
--- a/examples/example.rb
+++ b/examples/example.rb
@@ -237,17 +237,20 @@ if examples.include? :fixed_column_width
sheet.add_row ["I use autowidth and am very wide", "I use a custom width and am narrow"]
sheet.add_row ['abcdefg', 'This is a very long text and should flow into the right cell', nil, 'xxx' ]
sheet.column_widths nil, 3, 5, nil
+ sheet.column_info.each do |col|
+ puts col.width
+ end
end
end
#```ruby
if examples.include? :outline_level
wb.add_worksheet(name: 'outline_level') do |sheet|
- sheet.add_row [1, 2, 3, 4, Time.now, 149455.15]
- sheet.add_row [1, 2, 5, 6, Time.now,14100.19]
- sheet.add_row [9500002267, 1212, 1212, Time.now,14100.19]
- sheet.outline_rows 0, 2
- sheet.outline_cols 0, 2
+ sheet.add_row [1, 2, 3, Time.now, 5, 149455.15]
+ sheet.add_row [1, 2, 5, 6, 5,14100.19]
+ sheet.add_row [9500002267, 1212, 1212, 5,14100.19]
+ sheet.outline_level_rows 0, 2
+ sheet.outline_level_columns 0, 2
end
end
##```