Sha256: 14856ec0e02c9d66b50954f274549d36dc1696c4e5c5136a453f83436311d427

Contents?: true

Size: 1.3 KB

Versions: 467

Compression:

Stored size: 1.3 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 
            data-default-value="<%= input_default_value %>" 
            id="dropdown-selected-option" 
            name="<%= object.name %>" 
            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 options_with_blank.present? %>
                    <% options_with_blank.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

467 entries across 467 versions & 1 rubygems

Version Path
playbook_ui-14.9.0.pre.alpha.play17004992 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-14.9.0.pre.alpha.play1703errorstatealignment4991 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-14.10.0.pre.rc.15 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-14.9.0.pre.alpha.PLAY16264952 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-14.9.0.pre.alpha.PLAY1731inputmasking4927 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-14.9.0.pre.alpha.play1742globalheightfixes4926 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-14.9.0.pre.alpha.play1742globalheightfixes4925 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-14.10.0.pre.rc.14 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-14.10.0.pre.rc.13 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-14.9.0.pre.alpha.PBNTR746datepickerdefaultbug4903 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-14.9.0.pre.alpha.PBNTR746datepickerdefaultbug4901 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-14.9.0.pre.alpha.PBNTR746datepickerdefaultbug4898 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-14.9.0.pre.alpha.PBNTR746datepickerdefaultbug4891 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-14.9.0.pre.alpha.PLAY1731inputmasking4890 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-14.9.0.pre.alpha.play1703errorstatealignment4889 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-14.10.0.pre.rc.12 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-14.10.0.pre.rc.11 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-14.9.0.pre.alpha.PLAY1731inputmasking4868 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-14.9.0.pre.alpha.PLAY1731inputmasking4866 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb
playbook_ui-14.9.0.pre.alpha.PBNTR738collapsiblewithintablekit4855 app/pb_kits/playbook/pb_dropdown/dropdown.html.erb