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 /lib/axlsx/stylesheet | |
| 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 'lib/axlsx/stylesheet')
| -rw-r--r-- | lib/axlsx/stylesheet/styles.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/axlsx/stylesheet/styles.rb b/lib/axlsx/stylesheet/styles.rb index 1b22bb81..0532af66 100644 --- a/lib/axlsx/stylesheet/styles.rb +++ b/lib/axlsx/stylesheet/styles.rb @@ -135,6 +135,7 @@ module Axlsx # @option options [Integer] num_fmt The number format to apply # @option options [String] format_code The formatting to apply. # @option options [Integer|Hash] border The border style to use. + # borders support style, color and edges options @see parse_border_options # @option options [String] bg_color The background color to apply to the cell # @option options [Boolean] hidden Indicates if the cell should be hidden # @option options [Boolean] locked Indicates if the cell should be locked @@ -298,7 +299,11 @@ module Axlsx # parses Style#add_style options for borders. # @note noop if :border is not specified in options - # @option options [Hash|Integer] A border style definition hash or the index of an existing border. Border style definition hashes must include :style and color: key-value entries and may include an :edges entry that references an array of symbols identifying which border edges you wish to apply the style or any other valid Border initializer options. If the :edges entity is not provided the style is applied to all edges of cells that reference this style. + # @option options [Hash|Integer] A border style definition hash or the index of an existing border. + # Border style definition hashes must include :style and :color key-value entries and + # may include an :edges entry that references an array of symbols identifying which border edges + # you wish to apply the style or any other valid Border initializer options. + # If the :edges entity is not provided the style is applied to all edges of cells that reference this style. # @example # #apply a thick red border to the top and bottom # { :border => { :style => :thick, :color => "FFFF0000", :edges => [:top, :bottom] } |
