Class: Yattho::Forms::HiddenField

Inherits:
BaseComponent show all
Defined in:
lib/yattho/forms/hidden_field.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes included from ActsAsComponent

#template_root_path

Instance Method Summary collapse

Methods inherited from BaseComponent

#content, inherited, #input?, #perform_render, #render?, #to_component, #type

Methods included from ActsAsComponent

#compile!, extended, #renders_templates

Methods included from ClassNameHelper

#class_names

Constructor Details

#initialize(input:) ⇒ HiddenField

Returns a new instance of HiddenField.



9
10
11
12
# File 'lib/yattho/forms/hidden_field.rb', line 9

def initialize(input:)
  @input = input
  @input.add_input_classes("FormField-input")
end