app/inputs/multi_value_input.rb
# Although the 'index' parameter is not used in this implementation it is useful in an
# an overridden version of this method, especially when the field is a complex object and
# the override defines nested fields.
Although the 'index' parameter is not used in this implementation it is useful in an
an overridden version of this method, especially when the field is a complex object and
the override defines nested fields.
Although the ' index ' parameter is not used in this implementation it is useful in an an overridden version of this method especially when the field is a complex object and the override defines nested fields .
def build_field_options(value, index)
      options = input_html_options.dup
      options[:value] = value
      if @rendered_first_element
        options[:id] = nil
        options[:required] = nil
      else
        options[:id] ||= input_dom_id
      end
      options[:class] ||= []
      options[:class] += ["#{input_dom_id} form-control multi-text-field"]
      options[:'aria-labelledby'] = label_id
      @rendered_first_element = true
      options
    end
def build_field_options ( value , index ) options = input_html_options . dup options [ :value ] = value if @rendered_first_element options [ :id ] = nil options [ :required ] = nil else options [ :id ] ||= input_dom_id end options [ :class ] ||= [ ] options [ :class ] += [ "#{input_dom_id} form-control multi-text-field" ] options [ :' aria-labelledby ' ] = label_id @rendered_first_element = true options end
Although the 'index' parameter is not used in this implementation it is useful in an
an overridden version of this method, especially when the field is a complex object and
the override defines nested fields.
Although the ' index ' parameter is not used in this implementation it is useful in an an overridden version of this method especially when the field is a complex object and the override defines nested fields .
value
index