summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorJurriaan Pruis <[email protected]>2015-03-14 16:05:02 +0100
committerJurriaan Pruis <[email protected]>2015-03-14 16:05:02 +0100
commit73ce1c8d517e6b20cf9dfaf61a685fab65fdf950 (patch)
treebdea23a8cc02ab1dfa0aa535408f7fa27f5a88b8 /examples
parent1d6698ceac568ffe7d8cb9b9237761adba2e2251 (diff)
parentdc9d198b7b19505ad6a7320522df9ed114ea379a (diff)
downloadcaxlsx-73ce1c8d517e6b20cf9dfaf61a685fab65fdf950.tar.gz
caxlsx-73ce1c8d517e6b20cf9dfaf61a685fab65fdf950.zip
Merge pull request #367 from axelson/patch-1
Add usage information to row_column_style example
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/example.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/example.rb b/examples/example.rb
index eebfc868..15d34ed6 100755
--- a/examples/example.rb
+++ b/examples/example.rb
@@ -211,6 +211,7 @@ if examples.include? :row_column_style
head = s.add_style :bg_color => "00", :fg_color => "FF"
percent = s.add_style :num_fmt => 9
wb.add_worksheet(:name => "Columns and Rows") do |sheet|
+ # Note: you must add rows to the document *BEFORE* applying column styles to them
sheet.add_row ['col 1', 'col 2', 'col 3', 'col 4', 'col5']
sheet.add_row [1, 2, 0.3, 4, 5.0]
sheet.add_row [1, 2, 0.2, 4, 5.0]