Sha256: 807c2ad994470d14a7178944fafbd8dd3a6245ec78d76c974b4da2250946045d

Contents?: true

Size: 963 Bytes

Versions: 61

Compression:

Stored size: 963 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,
      dark: object.dark
    }) %>
    <%= pb_rails("list", props: { ordered: false, dark: 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

61 entries across 61 versions & 1 rubygems

Version Path
playbook_ui-5.5.1.pre.alpha3 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-5.5.1.pre.alpha2 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-5.5.1.pre.alpha1 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-5.2.0.pre.alpha10 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-5.5.1 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-5.5.0 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-5.5.0.pre.alpha1 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-5.2.0.pre.alpha9 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-5.2.0.pre.alpha8 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-5.2.0.pre.alpha7 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-5.3.0.pre.alpha1 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-5.4.0 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-5.2.0.pre.alpha6 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-5.2.0.pre.alpha5 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-5.3.0 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-5.2.0.pre.alpha4 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-5.2.0.pre.alpha3 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-5.2.0.pre.alpha2 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-5.2.0 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-5.1.0 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb