Class: ExampleToggleSwitchForm

Inherits:
Yattho::Forms::ToggleSwitchForm show all
Defined in:
app/forms/example_toggle_switch_form.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes included from Yattho::Forms::ActsAsComponent

#template_root_path

Instance Method Summary collapse

Methods inherited from Yattho::Forms::ToggleSwitchForm

inherited, new, #render_in

Methods inherited from Yattho::Forms::Base

#after_content?, #before_render, #caption_template?, caption_template?, #each_input_in, fields_with_caption_templates, form, inherited, #inputs, new, #perform_render, #render?, #render_caption_template, sanitize_field_name_for_template_path

Methods included from Yattho::Forms::ActsAsComponent

#compile!, extended, #renders_templates

Constructor Details

#initialize(**system_arguments) ⇒ ExampleToggleSwitchForm

Returns a new instance of ExampleToggleSwitchForm.



5
6
7
# File 'app/forms/example_toggle_switch_form.rb', line 5

def initialize(**system_arguments)
  super(name: :example_field, label: "Example", caption: "This is an example toggle switch.", **system_arguments)
end