Sha256: 8cdd5f146d438824f3fb6f49a6b2eda485364e9f012f70d35c75911381574c12
Contents?: true
Size: 917 Bytes
Versions: 16
Compression:
Stored size: 917 Bytes
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" style="position: relative"> <input type="hidden" name="<%= object.name %>" id="dropdown-selected-option" value=""/> <% if content.present? %> <%= content.presence %> <% else %> <%= pb_rails("dropdown/dropdown_trigger") %> <%= pb_rails("dropdown/dropdown_container") do %> <% if object.options.present? %> <% object.options.each do |option| %> <%= pb_rails("dropdown/dropdown_option", props: {option: option}) %> <% end %> <% end %> <% end %> <% end %> </div> <% end %>
Version data entries
16 entries across 16 versions & 1 rubygems