summaryrefslogtreecommitdiffhomepage
path: root/examples/data_validation.rb
diff options
context:
space:
mode:
authorrandym <[email protected]>2018-02-15 13:54:00 +0900
committerrandym <[email protected]>2018-02-15 13:54:00 +0900
commit5e1f56053c4cb2841a41ea642bb28abf3f055594 (patch)
tree193fb23ad218046b12517b7057d75d5440d1362e /examples/data_validation.rb
parentcef466486b489ed012b20b5bef341f4cee1d802d (diff)
downloadcaxlsx-5e1f56053c4cb2841a41ea642bb28abf3f055594.tar.gz
caxlsx-5e1f56053c4cb2841a41ea642bb28abf3f055594.zip
chore(examples): do more crazy in the data_validation example
Diffstat (limited to 'examples/data_validation.rb')
-rw-r--r--examples/data_validation.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/data_validation.rb b/examples/data_validation.rb
index c91b6c43..b95a6397 100644
--- a/examples/data_validation.rb
+++ b/examples/data_validation.rb
@@ -23,7 +23,9 @@ p.workbook.add_worksheet do |ws|
:errorStyle => :information,
:showInputMessage => true,
:promptTitle => 'Be careful!',
- :prompt => 'We really want a value between 5 and 10, but it is OK if you want to break the rules.'})
+ :prompt => %{We really want a value between 5 and 10,
+but it is OK if you want to break the rules.
+}})
ws.add_data_validation("B1:B5", {
:type => :textLength,
@@ -58,7 +60,7 @@ p.workbook.add_worksheet do |ws|
:error => 'Please use the dropdown selector to choose the value',
:errorStyle => :stop,
:showInputMessage => true,
- :prompt => 'Choose the value from the dropdown'})
+ :prompt => '&amp; Choose the value from the dropdown'})
end