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-7.0.0.pre.alpha1 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-6.1.0.pre.alpha5 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-6.1.0.pre.alpha4 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-6.1.0.pre.alpha3 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-6.1.0.pre.alpha2 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-6.1.0.pre.alpha1 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-6.1.0 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-6.0.1.pre.alpha6 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-6.0.1.pre.alpha5 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-6.0.1.pre.alpha4 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-6.0.1.pre.alpha3 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-6.0.1.pre.alpha2 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-5.2.0.pre.alpha15 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-5.2.0.pre.alpha14 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-5.2.0.pre.alpha13 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-6.0.1 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-5.2.0.pre.alpha12 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-6.0.0 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-5.2.0.pre.alpha11 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-5.5.1.pre.alpha4 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb