Sha256: 6783170db308cf0d86cac8b12cfc2844c986729590378e5c26c18bfd20750ae3

Contents?: true

Size: 533 Bytes

Versions: 1

Compression:

Stored size: 533 Bytes

Contents

<%= render(Yattho::Alpha::AutoComplete.new(label_text: "Fruits", src: "/view-components/rails-app/auto_complete?version=alpha", input_id: "fruits-input--custom-results", list_id: "fruits-popup--custom-results")) do |component| %>
  <% component.with_results(classes: "custom-class") do %>
    <%= render(Yattho::Alpha::AutoComplete::Item.new(selected: true, value: "apple")) do %>
      Apple
    <% end %>
    <%= render(Yattho::Alpha::AutoComplete::Item.new(value: "orange")) do %>
      Orange
    <% end %>
  <% end %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yattho_view_components-0.0.1 previews/docs/alpha_auto_complete_preview/with_custom_classes_for_the_results.html.erb