Sha256: f20f4edee7fa0582f96c291ee96c246c2e670739a67f8daa7de1157523da64dc

Contents?: true

Size: 1.06 KB

Versions: 65

Compression:

Stored size: 1.06 KB

Contents

<% if object.pills %>
  <%= react_component('Typeahead', object.typeahead_with_pills_options) %>
<% else %>
  <%= 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 %>
<% end %>

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
playbook_ui-9.7.0 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.6.1 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.6.1.pre.deps1 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.6.0 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.5.0.alpha.rs.downgrade app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.5.0 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.4.0.alpha.sisense app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.4.0.alpha.user.kit.bug app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.4.0 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.3.1.pre.alpha2 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.4.0.pre.alpha2 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.4.0.pre.alpha1 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.3.1.pre.alpha1 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.3.0.alpha.inline3 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.3.0.pre.alpha.password.strength.2 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.3.0.alpha.inline2 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.3.0.alpha.inline1 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.3.0.pre.alpha.password.strength.1 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.3.0 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.2.2.pre.alpha.margin app/pb_kits/playbook/pb_typeahead/typeahead.html.erb