Sha256: 13fbd4f39be7b541d94b6ddd86ac53c4a2086d7e4a22bd58b390b28fb29038fb

Contents?: true

Size: 925 Bytes

Versions: 47

Compression:

Stored size: 925 Bytes

Contents

<%= content_tag(:div,
                id: object.id,
                data: object.data,
                class: object.classname) do %>
  <div class="pb_typeahead_wrapper">
    <div class="pb_typeahead_loading_indicator" data-pb-typeahead-kit-loading-indicator>
      <i class="far fa-spinner fa-spin"></i>
    </div>
    <%= pb_rails("text_input", props: {
      type: "search",
      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 %>

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
playbook_ui-7.3.0.pre.alpha2 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-7.0.1 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-6.8.2.pre.alpha1 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-7.0.0.pre.alpha15 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-7.0.1.pre.alpha14 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-7.0.0.pre.alpha14 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-7.0.0.pre.alpha13 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-7.0.0.pre.alpha12 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-7.0.0 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-7.0.0.pre.alpha11 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-6.8.1 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-6.8.0 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-6.7.0.pre.alpha1 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-6.7.0 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-6.6.1 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-7.0.0.pre.alpha10 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-6.6.0 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-6.5.2 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-7.0.1.pre.alpha12 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-7.0.1.pre.alpha11 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb