Class: Superform::Rails::Components::FieldComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
lib/superform/rails.rb

Instance Attribute Summary

Attributes inherited from BaseComponent

#dom, #field

Instance Method Summary collapse

Methods inherited from BaseComponent

#focus, #initialize

Constructor Details

This class inherits a constructor from Superform::Rails::Components::BaseComponent

Instance Method Details

#field_attributesObject



228
229
230
# File 'lib/superform/rails.rb', line 228

def field_attributes
  { id: dom.id, name: dom.name }
end