Sha256: 9f796996a587370d6696f2986370b7944d83653ba615912bf51607a6d291b4fd

Contents?: true

Size: 825 Bytes

Versions: 12

Compression:

Stored size: 825 Bytes

Contents

module Coprl
  module Presenters
    module DSL
      module Components
        class Input < EventBase
          include Mixins::Tooltips

          attr_reader :name,
                      :dirtyable,
                      :disabled

          def initialize(**attribs_, &block)
            super(**attribs_, &block)
            @name = attribs.delete(:name)
            @dirtyable = attribs.delete(:dirtyable) { true }
            @disabled = attribs.delete(:disabled) { false }
          end

          # If present this error message will be displayed in place of the validation message produced by the
          # underlying component.
          def validation_error(error=nil)
            return @validation_error if locked?
            @validation_error = error
          end

        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
coprl-3.0.0.beta.12 lib/coprl/presenters/dsl/components/input.rb
coprl-3.0.0.beta.11 lib/coprl/presenters/dsl/components/input.rb
coprl-3.0.0.beta.10 lib/coprl/presenters/dsl/components/input.rb
coprl-3.0.0.beta.9 lib/coprl/presenters/dsl/components/input.rb
coprl-3.0.0.beta.8 lib/coprl/presenters/dsl/components/input.rb
coprl-3.0.0.beta.7 lib/coprl/presenters/dsl/components/input.rb
coprl-3.0.0.beta.6 lib/coprl/presenters/dsl/components/input.rb
coprl-3.0.0.beta.5 lib/coprl/presenters/dsl/components/input.rb
coprl-3.0.0.beta.4 lib/coprl/presenters/dsl/components/input.rb
coprl-3.0.0.beta.3 lib/coprl/presenters/dsl/components/input.rb
coprl-3.0.0.beta.2 lib/coprl/presenters/dsl/components/input.rb
coprl-3.0.0.beta.1 lib/coprl/presenters/dsl/components/input.rb