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