Sha256: d1c0e31274e8dedc010420b70714104ce803c40b522405880e4f502b476b409e

Contents?: true

Size: 1.77 KB

Versions: 521

Compression:

Stored size: 1.77 KB

Contents

<%= content_tag(:div,
    aria: object.aria,
    class: object.classname,
    data: object.data,
    id: object.id,
    **combined_html_options) do %>
    <% if content.present? %>
        <div style="display: inline-block" tabindex="0" data-dropdown-custom-trigger>
          <%= content.presence %>
        </div>
    <% else %>
    <%= pb_rails("flex", props: {
        align: "center", 
        border_radius:"lg", 
        classname: object.trigger_wrapper_classes, 
        cursor: "pointer", 
        justify: "between", 
        padding_x:"sm", 
        padding_y:"xs",
        html_options: {tabindex:"0"}
        }) do %>
        <%= pb_rails("flex/flex_item") do %>
            <%= pb_rails("flex", props: {align: "center"}) do %>
                <% if object.custom_display.present?  %>
                    <%= pb_rails("flex", props: {align: "center"}) do %>
                        <div id="dropdown_trigger_custom_display" style="display: none;"> 
                            <%= object.custom_display %>
                        </div>
                        <%= pb_rails("body", props: {text: object.default_display_placeholder, id: "dropdown_trigger_display"}) %>
                    <% end %>
                <% else %>
                <%= pb_rails("body", props: {text: object.default_display_placeholder, id: "dropdown_trigger_display"}) %>
                <% end %>
            <% end %>
        <% end %>
            <%= pb_rails("body", props: {display: "flex"}) do  %>
                <%= pb_rails("icon", props: {icon: "chevron-down", cursor: "pointer", size:"sm", id: "dropdown_open_icon"}) %>
                <%= pb_rails("icon", props: {icon: "chevron-up", cursor: "pointer", size:"sm", id: "dropdown_close_icon"}) %>
            <% end %>
    <% end %>
    <% end %>
<% end %>
      

Version data entries

521 entries across 521 versions & 1 rubygems

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