Sha256: 76210561030b7d06a7451aab31caba996357c73be6790518527e0cf4f2fd5531

Contents?: true

Size: 1.13 KB

Versions: 5

Compression:

Stored size: 1.13 KB

Contents

<%= content_tag(:div,
    aria: object.aria,
    class: object.classname,
    data: object.data,
    id: object.id,
    **combined_html_options) do %>
    <% if object.label.present? %>
        <%= pb_rails("caption", props: {text: object.label, margin_bottom:"xs"}) %>
    <% end %>
    <div class="dropdown_wrapper<%= error_class %>" style="position: relative">
        <input type="hidden" name="<%= object.name %>" id="dropdown-selected-option" value=""/>
        <% if content.present? %>
            <%= content.presence %>
            <%= pb_rails("body", props: { status: "negative", text: object.error }) %>
        <% else %>
            <%= pb_rails("dropdown/dropdown_trigger") %>
            <%= pb_rails("dropdown/dropdown_container") do %>
                <% if object.options.present? %>
                    <% object.options.each do |option| %>
                        <%= pb_rails("dropdown/dropdown_option", props: {option: option}) %>
                    <% end %>
                <% end %>
            <% end %>

            <%= pb_rails("body", props: { status: "negative", text: object.error }) %>
        <% end %>
    </div>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
playbook_ui-13.31.0.pre.alpha.play1262iconstyles3172 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-13.31.0.pre.alpha.play1262iconstyles3171 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-13.31.0 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-13.30.0.pre.alpha.play1367contenttagnoninputkits3159 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-13.30.0.pre.alpha.20240515remotebuildkitconversion3150 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb