Class: Primer::Forms::Dsl::FieldsetGroupInput
- Includes:
- InputMethods
- Defined in:
- app/lib/primer/forms/dsl/fieldset_group_input.rb
Overview
:nodoc:
Constant Summary
Constants inherited from Input
Input::DEFAULT_INPUT_WIDTH, Input::DEFAULT_SIZE, Input::INPUT_WIDTH_MAPPINGS, Input::INPUT_WIDTH_OPTIONS, Input::SIZE_MAPPINGS, Input::SIZE_OPTIONS, Input::SPACE_DELIMITED_ARIA_ATTRIBUTES
Instance Attribute Summary collapse
-
#builder ⇒ Object
readonly
Returns the value of attribute builder.
-
#form ⇒ Object
readonly
Returns the value of attribute form.
-
#system_arguments ⇒ Object
readonly
Returns the value of attribute system_arguments.
Attributes inherited from Input
#base_id, #caption, #form_control, #ids, #input_arguments, #label_arguments, #validation_message
Instance Method Summary collapse
-
#initialize(builder:, form:, **system_arguments) {|_self| ... } ⇒ FieldsetGroupInput
constructor
A new instance of FieldsetGroupInput.
- #input? ⇒ Boolean
- #to_component ⇒ Object
- #type ⇒ Object
Methods included from InputMethods
#action_menu, #auto_complete, #button, #check_box, #check_box_group, #fields_for, #hidden, #inputs, #multi, #radio_button_group, #select_list, #separator, #submit, #text_area, #text_field
Methods inherited from Input
#add_input_aria, #add_input_classes, #add_input_data, #add_label_classes, #autofocus!, #caption?, #caption_id, #caption_template?, #disabled?, #focusable?, #full_width?, #hidden?, #id, #input_width, #invalid?, #label, #merge_input_arguments!, #name, #remove_input_data, #render_caption_template, #required?, #size, #supports_validation?, #valid?, #validation_arguments, #validation_error_icon_target, #validation_id, #validation_message_arguments, #validation_messages, #validation_success_icon_target, #value, #values_disambiguate_template_names?
Methods included from ClassNameHelper
Constructor Details
#initialize(builder:, form:, **system_arguments) {|_self| ... } ⇒ FieldsetGroupInput
Returns a new instance of FieldsetGroupInput.
13 14 15 16 17 18 19 |
# File 'app/lib/primer/forms/dsl/fieldset_group_input.rb', line 13 def initialize(builder:, form:, **system_arguments) @builder = builder @form = form @system_arguments = system_arguments yield(self) if block_given? end |
Instance Attribute Details
#builder ⇒ Object (readonly)
Returns the value of attribute builder.
11 12 13 |
# File 'app/lib/primer/forms/dsl/fieldset_group_input.rb', line 11 def builder @builder end |
#form ⇒ Object (readonly)
Returns the value of attribute form.
11 12 13 |
# File 'app/lib/primer/forms/dsl/fieldset_group_input.rb', line 11 def form @form end |
#system_arguments ⇒ Object (readonly)
Returns the value of attribute system_arguments.
11 12 13 |
# File 'app/lib/primer/forms/dsl/fieldset_group_input.rb', line 11 def system_arguments @system_arguments end |
Instance Method Details
#input? ⇒ Boolean
29 30 31 |
# File 'app/lib/primer/forms/dsl/fieldset_group_input.rb', line 29 def input? true end |
#to_component ⇒ Object
21 22 23 |
# File 'app/lib/primer/forms/dsl/fieldset_group_input.rb', line 21 def to_component FieldsetGroup.new(inputs: inputs, builder: builder, form: form, **@system_arguments) end |
#type ⇒ Object
25 26 27 |
# File 'app/lib/primer/forms/dsl/fieldset_group_input.rb', line 25 def type :group end |