Sha256: 760243953846d91f30a2b1e21a4545cef0b1437211658c004ea9fa51f11626da

Contents?: true

Size: 1.72 KB

Versions: 14

Compression:

Stored size: 1.72 KB

Contents

require 'rubyXL/objects/ooxml_object'
require 'rubyXL/objects/simple_types'
require 'rubyXL/objects/formula'

module RubyXL

  # http://www.schemacentral.com/sc/ooxml/e-ssml_dataValidation-1.html
  class DataValidation < OOXMLObject
    define_attribute(:type,             RubyXL::ST_DataValidationType,       :default => 'none')
    define_attribute(:errorStyle,       RubyXL::ST_DataValidationErrorStyle, :default => 'stop')
    define_attribute(:imeMode,          RubyXL::ST_DataValidationImeMode,    :default => 'noControl')
    define_attribute(:operator,         RubyXL::ST_DataValidationOperator,   :default => 'between')
    define_attribute(:allowBlank,       :bool, :default => false)
    define_attribute(:showDropDown,     :bool, :default => false)
    define_attribute(:showInputMessage, :bool, :default => false)
    define_attribute(:showErrorMessage, :bool, :default => false)
    define_attribute(:errorTitle,       :string)
    define_attribute(:error,            :string)
    define_attribute(:promptTitle,      :string)
    define_attribute(:prompt,           :string)
    define_attribute(:sqref,            :sqref, :required => true)

    define_child_node(RubyXL::Formula, :node_name => :formula1)
    define_child_node(RubyXL::Formula, :node_name => :formula2)
    define_element_name 'dataValidation'

  end

  # http://www.schemacentral.com/sc/ooxml/e-ssml_dataValidations-1.html
  class DataValidations < OOXMLObject
    define_attribute(:disablePrompts, :bool, :default => false)
    define_attribute(:xWindow,        :int)
    define_attribute(:yWindow,        :int)
    define_child_node(RubyXL::DataValidation, :collection => :with_count)
    define_element_name 'dataValidations'
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rubyXL-2.5.2 lib/rubyXL/objects/data_validation.rb
rubyXL-2.5.1 lib/rubyXL/objects/data_validation.rb
rubyXL-2.5.0 lib/rubyXL/objects/data_validation.rb
rubyXL-2.4.4 lib/rubyXL/objects/data_validation.rb
rubyXL-2.4.3 lib/rubyXL/objects/data_validation.rb
rubyXL-2.4.2 lib/rubyXL/objects/data_validation.rb
rubyXL-2.4.1 lib/rubyXL/objects/data_validation.rb
rubyXL-2.4.0 lib/rubyXL/objects/data_validation.rb
rubyXL-2.3.4 lib/rubyXL/objects/data_validation.rb
rubyXL-2.3.3 lib/rubyXL/objects/data_validation.rb
rubyXL-2.3.2 lib/rubyXL/objects/data_validation.rb
rubyXL-2.3.1 lib/rubyXL/objects/data_validation.rb
rubyXL-2.3.0 lib/rubyXL/objects/data_validation.rb
rubyXL-2.2.0 lib/rubyXL/objects/data_validation.rb