diff options
| author | Jurriaan Pruis <[email protected]> | 2014-01-08 13:39:55 -0800 |
|---|---|---|
| committer | Jurriaan Pruis <[email protected]> | 2014-01-08 13:39:55 -0800 |
| commit | 89a39ae3ab64cd4b556af862df702e92a2d3ae19 (patch) | |
| tree | 999a5fc1413a312927f548d427c08903e42c8860 /lib | |
| parent | 986ee4d4087cfbac4de1d13f3b660386917e7035 (diff) | |
| parent | 162b73253a1e2663df09713b63ca93d3f7a69b43 (diff) | |
| download | caxlsx-89a39ae3ab64cd4b556af862df702e92a2d3ae19.tar.gz caxlsx-89a39ae3ab64cd4b556af862df702e92a2d3ae19.zip | |
Merge pull request #275 from sudhirrs/patch-1
Fixing typo in documentation. ws.styles
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/axlsx/stylesheet/styles.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/axlsx/stylesheet/styles.rb b/lib/axlsx/stylesheet/styles.rb index 067ed1fa..7970e0c1 100644 --- a/lib/axlsx/stylesheet/styles.rb +++ b/lib/axlsx/stylesheet/styles.rb @@ -151,7 +151,7 @@ module Axlsx # ws = p.workbook.add_worksheet # # # black text on a white background at 14pt with thin borders! - # title = ws.style.add_style(:bg_color => "FFFF0000", :fg_color=>"#FF000000", :sz=>14, :border=> {:style => :thin, :color => "FFFF0000"} + # title = ws.styles.add_style(:bg_color => "FFFF0000", :fg_color=>"#FF000000", :sz=>14, :border=> {:style => :thin, :color => "FFFF0000"} # # ws.add_row ["Least Popular Pets"] # ws.add_row ["", "Dry Skinned Reptiles", "Bald Cats", "Violent Parrots"], :style=>title @@ -168,18 +168,18 @@ module Axlsx # ws = p.workbook.add_worksheet # # # define your styles - # title = ws.style.add_style(:bg_color => "FFFF0000", + # title = ws.styles.add_style(:bg_color => "FFFF0000", # :fg_color=>"#FF000000", # :border=>Axlsx::STYLE_THIN_BORDER, # :alignment=>{:horizontal => :center}) # - # date_time = ws.style.add_style(:num_fmt => Axlsx::NUM_FMT_YYYYMMDDHHMMSS, + # date_time = ws.styles.add_style(:num_fmt => Axlsx::NUM_FMT_YYYYMMDDHHMMSS, # :border=>Axlsx::STYLE_THIN_BORDER) # - # percent = ws.style.add_style(:num_fmt => Axlsx::NUM_FMT_PERCENT, + # percent = ws.styles.add_style(:num_fmt => Axlsx::NUM_FMT_PERCENT, # :border=>Axlsx::STYLE_THIN_BORDER) # - # currency = ws.style.add_style(:format_code=>"¥#,##0;[Red]¥-#,##0", + # currency = ws.styles.add_style(:format_code=>"¥#,##0;[Red]¥-#,##0", # :border=>Axlsx::STYLE_THIN_BORDER) # # # build your rows |
