Sha256: 7843a1e36a608fb1226b0a88b5c2c66079a09225bb03b67b515afc6e86cbcff9
Contents?: true
Size: 1.25 KB
Versions: 231
Compression:
Stored size: 1.25 KB
Contents
<% if object.is_react? %> <%= react_component('Typeahead', object.typeahead_react_options) %> <% else %> <%= content_tag(:div, id: object.id, data: object.data, class: object.classname + object.inline_class, **combined_html_options) do %> <div class="pb_typeahead_wrapper"> <div class="pb_typeahead_loading_indicator" data-pb-typeahead-kit-loading-indicator> <%= pb_rails("icon", props: { icon: "spinner", pulse: true, fixed_width: true, }) %> </div> <%= pb_rails("text_input", props: { type: "search", input_options: object.input_options, label: object.label, name: object.name, value: object.value, placeholder: object.placeholder }) %> <%= pb_rails("list", props: { ordered: false, borderless: false, xpadding: true, role: "status", aria: { live: "polite" }, data: { pb_typeahead_kit_results: true } }) do %> <% end %> </div> <template data-pb-typeahead-kit-result-option> <%= pb_rails("list/item") do %> <button type="button" data-result-option-item><%= tag(:slot, name: :content) %></button> <% end %> </template> <% end %> <% end %>
Version data entries
231 entries across 231 versions & 1 rubygems