Class: Primer::Forms::HiddenField
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- Primer::Forms::HiddenField
- Defined in:
- app/lib/primer/forms/hidden_field.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(input:) ⇒ HiddenField
constructor
A new instance of HiddenField.
Methods inherited from BaseComponent
compile!, #content, #input?, #perform_render, #render?, #to_component, #type
Methods included from ActsAsComponent
#compile!, extended, #renders_templates
Methods included from ClassNameHelper
Constructor Details
#initialize(input:) ⇒ HiddenField
Returns a new instance of HiddenField.
9 10 11 12 |
# File 'app/lib/primer/forms/hidden_field.rb', line 9 def initialize(input:) @input = input @input.add_input_classes("FormField-input") end |