Sha256: c8ac7f6f79c5cd0d2a81e61a7620a525e117eded1cb0f1f8b5d8ce7331dbd9cd

Contents?: true

Size: 1.29 KB

Versions: 19

Compression:

Stored size: 1.29 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="" />
        <input id="dropdown-form-validation" name="<%= object.name %>_form_validation" value="" style="display: none" <%= object.required ? "required" : ""%> />

        <% 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

19 entries across 19 versions & 1 rubygems

Version Path
playbook_ui-13.32.0.pre.alpha.PLAY14143272 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-13.32.0.pre.alpha.PLAY14143271 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-13.32.0.pre.alpha.PLAY1138iconkitaddcolorprop3268 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-13.32.0.pre.alpha.PLAY14143267 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-13.32.0.pre.alpha.play1416movealiaslogic3266 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-13.32.0.pre.alpha.PLAY14143264 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-13.32.0.pre.alpha.PLAY14143260 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-13.32.0.pre.alpha.PLAY14143255 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-13.32.0.pre.alpha.PLAY14143251 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-13.32.0.pre.alpha.play1416movealiaslogic3239 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-13.32.0.pre.alpha.PLAY14103236 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-13.31.0.pre.alpha.play1416movealiaslogic3232 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-13.31.0.pre.alpha.PBNTR342navtabbing3231 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-13.31.0.pre.alpha.PBNTR342navtabbing3230 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-13.32.0 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-13.31.0.pre.alpha.powercentrainplaybookpt23212 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-13.31.0.pre.alpha.PLAY10863204 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-13.31.0.pre.alpha.PLAY10863202 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-13.31.0.pre.alpha.PLAY882formpillprimaryandneutral3201 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb