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.10.0.pre.alpha.play16825244 app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb
playbook_ui-14.11.0.pre.rc.11 app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb
playbook_ui-14.11.0.pre.rc.10 app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5214 app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5213 app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5210 app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5208 app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5207 app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb
playbook_ui-14.10.0.pre.alpha.play16825206 app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5204 app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5201 app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb
playbook_ui-14.11.0.pre.rc.9 app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5200 app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb
playbook_ui-14.11.0.pre.rc.8 app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb
playbook_ui-14.11.0.pre.rc.7 app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb
playbook_ui-14.11.0.pre.rc.6 app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb
playbook_ui-14.11.0.pre.rc.5 app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5193 app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb
playbook_ui-14.11.0.pre.rc.4 app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb
playbook_ui-14.11.0.pre.rc.3 app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb