Sha256: 5233434af64a42fafacdecc7d8f734150803adde1ac857252a7ec13e32d3b8fa
Contents?: true
Size: 824 Bytes
Versions: 6
Compression:
Stored size: 824 Bytes
Contents
module Voom 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
6 entries across 6 versions & 1 rubygems