Class: ExampleToggleSwitchForm
- Inherits:
-
Primer::Forms::ToggleSwitchForm
- Object
- Primer::Forms::Base
- Primer::Forms::ToggleSwitchForm
- ExampleToggleSwitchForm
- Defined in:
- app/forms/example_toggle_switch_form.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(**system_arguments) ⇒ ExampleToggleSwitchForm
constructor
A new instance of ExampleToggleSwitchForm.
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 |