class Voom::Presenters::DSL::Components::Input
Attributes
dirtyable[R]
disabled[R]
name[R]
Public Class Methods
new(**attribs_, &block)
click to toggle source
Calls superclass method
Voom::Presenters::DSL::Components::EventBase::new
# File lib/voom/presenters/dsl/components/input.rb, line 12 def initialize(**attribs_, &block) super(**attribs_, &block) @name = attribs.delete(:name) @dirtyable = attribs.delete(:dirtyable) { true } @disabled = attribs.delete(:disabled) { false } end
Public Instance Methods
validation_error(error=nil)
click to toggle source
If present this error message will be displayed in place of the validation message produced by the underlying component.
# File lib/voom/presenters/dsl/components/input.rb, line 21 def validation_error(error=nil) return @validation_error if locked? @validation_error = error end