Class: Spark::Input::Base

Inherits:
Component::Base show all
Defined in:
app/components/spark/input/base.rb

Direct Known Subclasses

Checkbox

Instance Method Summary collapse

Methods inherited from Component::Base

#selector, #to_s, #unique_id

Constructor Details

#initializeBase

Returns a new instance of Base.



9
10
11
12
13
14
# File 'app/components/spark/input/base.rb', line 9

def initialize(*)
  super

  tag_attrs.add attr_hash(:value, :disabled, :required, :name)
  classname.add "spark-input"
end