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