Class: FormProps::Inputs::Submit
- Defined in:
- lib/form_props/inputs/submit.rb
Instance Method Summary collapse
-
#initialize(template_object, options) ⇒ Submit
constructor
A new instance of Submit.
- #render ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(template_object, options) ⇒ Submit
Returns a new instance of Submit.
6 7 8 9 |
# File 'lib/form_props/inputs/submit.rb', line 6 def initialize(template_object, ) @template_object = template_object @options = .with_indifferent_access end |
Instance Method Details
#render ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/form_props/inputs/submit.rb', line 11 def render @options[:type] = field_type json.set!(:submit) do input_props(@options) end end |