Sha256: eb2ed0f53541b13367cd98037ee4bf3c96023c613b2b28f387ef8285025fa4f5
Contents?: true
Size: 812 Bytes
Versions: 4
Compression:
Stored size: 812 Bytes
Contents
module TaoForm module Inputs class GroupedCollectionSelectInput < ::SimpleForm::Inputs::GroupedCollectionSelectInput def input(wrapper_options = nil) label_method, value_method = detect_collection_methods merged_input_options = merge_wrapper_options(input_html_options, wrapper_options) multiple = input_options[:multiple] || merged_input_options[:multiple] || false input_options[:icon] = :arrow_right template.send :tao_select, @builder, attribute_name, nil, input_options, merged_input_options do @builder.grouped_collection_select( attribute_name, grouped_collection, group_method, group_label_method, value_method, label_method, input_options, {multiple: multiple} ) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems