Class: ExampleToggleSwitchForm

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

Overview

:nodoc:

Instance Attribute Summary

Attributes included from Primer::Forms::ActsAsComponent

#template_root_path

Instance Method Summary collapse

Methods inherited from Primer::Forms::ToggleSwitchForm

define_form_on, inherited, new, #render_in

Methods inherited from Primer::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 Primer::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", **system_arguments)
end