Sha256: a9f852d9ce14b8e4382388bc14d8e36edd33a5cd28b5de3841045accbdfe667e

Contents?: true

Size: 1.39 KB

Versions: 66

Compression:

Stored size: 1.39 KB

Contents

<% if object.is_react? %>
  <%= react_component('Typeahead', object.typeahead_react_options) %>
<% else %>
  <%= content_tag(:div,
                id: object.id,
                data: object.data,
                class: object.classname + object.inline_class,
                **combined_html_options) 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,
        name: object.name,
        value: object.value,
        placeholder: object.placeholder,
        margin_bottom: "none",
        required: object.required,
        validation: object.validation,
        label: object.label,
        id: object.input_options[:id],
      }) %>
      <%= 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

66 entries across 66 versions & 1 rubygems

Version Path
playbook_ui-14.10.0.pre.rc.18 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-14.9.0.pre.alpha.PLAY1660reactdropzone5020 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-14.10.0.pre.rc.17 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-14.10.0.pre.rc.16 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-14.9.0.pre.alpha.play17004992 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-14.9.0.pre.alpha.play1703errorstatealignment4991 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-14.10.0.pre.rc.15 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-14.9.0.pre.alpha.PLAY16264952 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-14.9.0.pre.alpha.PLAY1731inputmasking4927 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-14.9.0.pre.alpha.play1742globalheightfixes4926 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-14.9.0.pre.alpha.play1742globalheightfixes4925 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-14.10.0.pre.rc.14 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-14.10.0.pre.rc.13 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-14.9.0.pre.alpha.PBNTR746datepickerdefaultbug4903 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-14.9.0.pre.alpha.PBNTR746datepickerdefaultbug4901 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-14.9.0.pre.alpha.PBNTR746datepickerdefaultbug4898 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-14.9.0.pre.alpha.PBNTR746datepickerdefaultbug4891 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-14.9.0.pre.alpha.PLAY1731inputmasking4890 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-14.9.0.pre.alpha.play1703errorstatealignment4889 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-14.10.0.pre.rc.12 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb