diff options
| author | Randy Morgan <[email protected]> | 2012-09-30 09:22:55 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-09-30 09:22:55 +0900 |
| commit | a8edb2112abace37ae025fb76b7935fe0973cab8 (patch) | |
| tree | 90a989350247cb23c59885169aa863951992d188 /examples | |
| parent | 64043aacf142667f1b8906586e58af91a3778b2f (diff) | |
| download | caxlsx-a8edb2112abace37ae025fb76b7935fe0973cab8.tar.gz caxlsx-a8edb2112abace37ae025fb76b7935fe0973cab8.zip | |
Updated auto_filter example to show how you can apply a specific value filter
Diffstat (limited to 'examples')
| -rwxr-xr-x | examples/example.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/example.rb b/examples/example.rb index 9ba1ab73..0850857a 100755 --- a/examples/example.rb +++ b/examples/example.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -w -s # -*- coding: utf-8 -*- -$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib" +# $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib" #```ruby require 'axlsx' @@ -190,6 +190,7 @@ wb.add_worksheet(:name => "Auto Filter") do |sheet| sheet.add_row ["19.2", "1 min 28 sec", "about 10 hours ago", "1.9.2"] sheet.add_row ["19.3", "1 min 35 sec", "about 10 hours ago", "1.9.3"] sheet.auto_filter = "A2:D5" + sheet.auto_filter.add_column 3, :filters, :filter_items => ['1.9.2', '1.8.7'] end #``` |
