Class: Superform::Rails::Components::Field

Inherits:
Base
  • Object
show all
Defined in:
lib/superform/rails/components/field.rb

Direct Known Subclasses

Button, Checkbox, Input, Select, Textarea

Instance Attribute Summary

Attributes inherited from Base

#dom, #field

Instance Method Summary collapse

Methods inherited from Base

#focus, #initialize

Constructor Details

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

Instance Method Details

#field_attributesObject



5
6
7
# File 'lib/superform/rails/components/field.rb', line 5

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