Class: Primer::Forms::Dsl::MultiInput
- Includes:
- InputMethods
- Defined in:
- app/lib/primer/forms/dsl/multi_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
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Input
#base_id, #builder, #caption, #form, #form_control, #ids, #input_arguments, #label_arguments, #validation_message
Instance Method Summary collapse
-
#initialize(name:, label:, **system_arguments) {|_self| ... } ⇒ MultiInput
constructor
A new instance of MultiInput.
- #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?, #input_width, #invalid?, #merge_input_arguments!, #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(name:, label:, **system_arguments) {|_self| ... } ⇒ MultiInput
Returns a new instance of MultiInput.
12 13 14 15 16 17 18 19 |
# File 'app/lib/primer/forms/dsl/multi_input.rb', line 12 def initialize(name:, label:, **system_arguments) @name = name @label = label super(**system_arguments) yield(self) if block_given? end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
10 11 12 |
# File 'app/lib/primer/forms/dsl/multi_input.rb', line 10 def label @label end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
10 11 12 |
# File 'app/lib/primer/forms/dsl/multi_input.rb', line 10 def name @name end |