diff options
| author | Randy Morgan <[email protected]> | 2012-08-23 08:19:57 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-08-23 08:19:57 +0900 |
| commit | bfac5e8cb64783e55c69b7ab26c5050a6c9e7ebe (patch) | |
| tree | 3119ed216f5d00117b0dc9e989f9e284d91823df /examples/example.rb | |
| parent | 398034bda98c0868d1bc54f684dc00a37931fe19 (diff) | |
| download | caxlsx-bfac5e8cb64783e55c69b7ab26c5050a6c9e7ebe.tar.gz caxlsx-bfac5e8cb64783e55c69b7ab26c5050a6c9e7ebe.zip | |
show how to do border edges in the exempts and update docs in stylesheet
Diffstat (limited to 'examples/example.rb')
| -rwxr-xr-x | examples/example.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/example.rb b/examples/example.rb index eb9d1a15..6f4daec3 100755 --- a/examples/example.rb +++ b/examples/example.rb @@ -62,8 +62,8 @@ end #```ruby #Axlsx defines a thin border style, but you can easily create and use your own. wb.styles do |s| - red_border = s.add_style :border => { :style => :thick, :color =>"FFFF0000" } - blue_border = s.add_style :border => { :style => :thick, :color =>"FF0000FF" } + red_border = s.add_style :border => { :style => :thick, :color =>"FFFF0000", :edges => [:left, :right] } + blue_border = s.add_style :border => { :style => :thick, :color =>"FF0000FF"} wb.add_worksheet(:name => "Custom Borders") do |sheet| sheet.add_row ["wrap", "me", "Up in Red"], :style => red_border @@ -195,6 +195,7 @@ end ##Automatic cell types + #```ruby wb.add_worksheet(:name => "Automatic cell types") do |sheet| date_format = wb.styles.add_style :format_code => 'YYYY-MM-DD' |
