Sha256: 43fc2ef8fd749607ecd85788ffe33c6ea2e9682dc3a45925767b62e778fa9f9b
Contents?: true
Size: 591 Bytes
Versions: 9
Compression:
Stored size: 591 Bytes
Contents
module CustomInputs class AutocompleteInput < SimpleForm::Inputs::CollectionInput include UiBibz::Ui::Core::Inputs include ActionView::Helpers::FormOptionsHelper def input(wrapper_options) label_method, value_method = detect_collection_methods options = options || {} options = options.merge({ builder: @builder }) options = options.merge(option_tags: options_from_collection_for_select(collection, label_method, label_method)) UiBibz::Ui::Core::Inputs::AutocompleteField.new(attribute_name, options, input_html_options).render end end end
Version data entries
9 entries across 9 versions & 1 rubygems