Last active
May 7, 2020 19:22
-
-
Save leompeters/816497eed864cacbcc66 to your computer and use it in GitHub Desktop.
Choose how input to use with bootstrap-combobox.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Choose how input to use with bootstrap-combobox. --> | |
<%= f.input :parent_name, label: false, hint: false do %> | |
<div class="input-append input-block-level"> | |
<%= f.input_field :parent_name, as: :string, placeholder: false, disabled: true, | |
autocomplete: "off", data: { provide: "typeahead" } %> | |
<span id="tog" class="add-on typeahead-toggle"> | |
<span class="caret"></span> | |
</span> | |
</div> <!-- /.input-append --> | |
<% end %> | |
<%= f.input :parent_name, as: :select, input_html: { class: "combobox" }, | |
label: false, placeholder: false, hint: false %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment