Skip to content

Instantly share code, notes, and snippets.

@leompeters
Last active May 7, 2020 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leompeters/816497eed864cacbcc66 to your computer and use it in GitHub Desktop.
Save leompeters/816497eed864cacbcc66 to your computer and use it in GitHub Desktop.
Choose how input to use with bootstrap-combobox.
<!-- 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