Sha256: 6f098516adc76dace0fb0755024f51c817773923bf84acd1dfc667118f3a6dde

Contents?: true

Size: 1.16 KB

Versions: 30

Compression:

Stored size: 1.16 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",
        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

30 entries across 30 versions & 1 rubygems

Version Path
playbook_ui-10.5.0 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-10.4.0 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-10.3.0 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-10.2.1.alpha.sisensefix app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-10.2.1 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-10.2.0 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-10.1.0 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-10.0.3.pre.alpha.walkthrough2 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-10.0.3.pre.alpha.walkthrough app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-10.0.1.alpha.railscusticon app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-10.0.2.pre.alpha.pre.iconfix app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-10.0.1.alpha.rtflexfix app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-10.0.0.pre.alphafonts app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-10.0.1 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-10.0.0 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.19.0.pre.alpha.pre.fonts2 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.19.0 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.19.0.pre.alphafonts app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.18.0.flow.bin.alpha app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.18.0 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb