Sha256: 5f3adbbf975a73432d3ce3c21142c61ae006e75402e4b2ea04262845154a2123
Contents?: true
Size: 457 Bytes
Versions: 3
Compression:
Stored size: 457 Bytes
Contents
<%= index_field_wrapper(**field_wrapper_args, flush: true) do %> <div class="flex gap-1 items-center flex-nowrap"> <% value.take(3).each do |item| %> <%= render Avo::Fields::TagsField::TagComponent.new(label: label_from_item(item)) %> <% end %> <% if value.count > 3 %> <%= render Avo::Fields::TagsField::TagComponent.new(label: '...', title: I18n.t('avo.x_items_more', count: value.count - 3)) %> <% end %> </div> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems