class Xlsxrb::DataValidationBuilder
Builder context for configuring data validation rules in block form.
Public Class Methods
(?String? sqref, **untyped opts) → void
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2743 def initialize(sqref = nil, **opts) @options = opts.dup @options[:sqref] = sqref if sqref end
@param sqref [String, nil] Target cell or range reference. @param opts [Hash] Additional validation properties.
Public Instance Methods
(bool val) → bool
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2851 def allow_blank=(val) @options[:allow_blank] = val ? true : false end
() → bool
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2846 def allow_blank? @options[:allow_blank] ? true : false end
() → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2759 def columns @options[:columns] end
(untyped val) → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2764 def columns=(val) @options[:columns] = val end
() → String?
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2886 def error_message @options[:error] end
(String val) → String
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2891 def error_message=(val) @options[:error] = val.to_s end
() → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2916 def error_style @options[:error_style] end
(untyped val) → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2921 def error_style=(val) @options[:error_style] = val end
() → String?
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2876 def error_title @options[:error_title] end
(String val) → String
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2881 def error_title=(val) @options[:error_title] = val.to_s end
() → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2779 def except_rows @options[:except_rows] end
(untyped val) → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2784 def except_rows=(val) @options[:except_rows] = val end
() → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2826 def formula1 @options[:formula1] end
(untyped val) → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2831 def formula1=(val) @options[:formula1] = val end
() → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2836 def formula2 @options[:formula2] end
(untyped val) → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2841 def formula2=(val) @options[:formula2] = val end
() → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2796 def list @options[:list] end
Sets or gets the list validation choices.
@example
b.list = ["Option1", "Option2"]
@return [Array<Object>, nil] @api public
(Array[untyped] val) → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2801 def list=(val) @options[:list] = val end
() → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2816 def operator @options[:operator] end
(untyped val) → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2821 def operator=(val) @options[:operator] = val end
() → String?
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2906 def prompt_message @options[:prompt] end
(String val) → String
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2911 def prompt_message=(val) @options[:prompt] = val.to_s end
() → String?
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2896 def prompt_title @options[:prompt_title] end
(String val) → String
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2901 def prompt_title=(val) @options[:prompt_title] = val.to_s end
() → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2769 def rows @options[:rows] end
(untyped val) → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2774 def rows=(val) @options[:rows] = val end
(bool val) → bool
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2871 def show_error_message=(val) @options[:show_error_message] = val ? true : false end
() → bool
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2866 def show_error_message? @options[:show_error_message] ? true : false end
(bool val) → bool
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2861 def show_input_message=(val) @options[:show_input_message] = val ? true : false end
() → bool
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2856 def show_input_message? @options[:show_input_message] ? true : false end
() → String?
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2749 def sqref @options[:sqref] end
(String val) → String
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2754 def sqref=(val) @options[:sqref] = val.to_s end
() → Hash[Symbol, untyped]
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2926 def to_h @options.dup end
() → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2806 def type @options[:type] end
(untyped val) → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2811 def type=(val) @options[:type] = val end