Sha256: 92be900ba583e436df7f8a73f27b7c232b6ca1e0f7e54dc3e38029c508237882

Contents?: true

Size: 1.21 KB

Versions: 81

Compression:

Stored size: 1.21 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 + object.inline_class) 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

81 entries across 81 versions & 1 rubygems

Version Path
playbook_ui-11.3.0.pre.alpha2 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-11.3.0.pre.alpha1 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-11.3.0 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-11.2.7 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-11.2.6 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-11.2.5 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-11.2.4 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-11.2.4.pre.alpha1 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-11.2.3 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-11.2.2 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-11.2.1 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-11.2.0 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-11.1.2 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-11.1.2.pre.alpha1 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-11.1.1 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-11.1.1.pre.alpha1 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-11.1.0 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-11.0.1 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-11.0.0 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-11.0.0.pre.alpha.2 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb