Sha256: d2ad8e8bad0adf110b10f616c4448f506a084d7652a80c4e76b93f1034e92f44

Contents?: true

Size: 619 Bytes

Versions: 112

Compression:

Stored size: 619 Bytes

Contents

<%= content_tag :td,
  class: "min-h-[3rem] px-3 leading-tight whitespace-nowrap h-full text-slate-800 text-base #{classes}",
  data: {
    field_id: @field.id,
    field_type: @field.type,
    **stimulus_attributes
  },
  style: style do %>
  <% if @field.value.blank? && @dash_if_blank %>
    —
  <% else %>
    <% if @center_content %>
      <div class="flex items-center justify-center">
        <%= content %>
      </div>
    <% else %>
      <%= content %>
    <% end %>
  <% end %>
  <% if params[:avo_debug].present? %>
    <!-- Raw value: -->
    <!-- <%== @field.value.inspect %> -->
  <% end %>
<% end %>

Version data entries

112 entries across 112 versions & 1 rubygems

Version Path
avo-2.13.2.pre.2 app/components/avo/index/field_wrapper_component.html.erb
avo-2.13.2.pre.1 app/components/avo/index/field_wrapper_component.html.erb
avo-2.13.1 app/components/avo/index/field_wrapper_component.html.erb
avo-2.13.0 app/components/avo/index/field_wrapper_component.html.erb
avo-2.12.1.pre.1 app/components/avo/index/field_wrapper_component.html.erb
avo-2.12.0 app/components/avo/index/field_wrapper_component.html.erb
avo-2.11.3.pre.3 app/components/avo/index/field_wrapper_component.html.erb
avo-2.11.3.pre.2 app/components/avo/index/field_wrapper_component.html.erb
avo-2.11.3.pre.1 app/components/avo/index/field_wrapper_component.html.erb
avo-2.11.2.pre.3 app/components/avo/index/field_wrapper_component.html.erb
avo-2.11.2.pre.2 app/components/avo/index/field_wrapper_component.html.erb
avo-2.11.2.pre.1 app/components/avo/index/field_wrapper_component.html.erb