Sha256: d871687e3d6aba3b2696536da8045198e27d1fe98d723f15033571cac532f688
Contents?: true
Size: 1.63 KB
Versions: 4
Compression:
Stored size: 1.63 KB
Contents
<%= pb_content_tag 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
4 entries across 4 versions & 1 rubygems