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-3.0.0.pre12 app/components/avo/index/field_wrapper_component.html.erb
avo-3.0.0.pre10 app/components/avo/index/field_wrapper_component.html.erb
avo-3.0.0.pre11 app/components/avo/index/field_wrapper_component.html.erb
avo-3.0.0.pre8 app/components/avo/index/field_wrapper_component.html.erb
avo-3.0.0.pre9 app/components/avo/index/field_wrapper_component.html.erb
avo-3.0.0.pre7 app/components/avo/index/field_wrapper_component.html.erb
avo-3.0.0.pre5 app/components/avo/index/field_wrapper_component.html.erb
avo-3.0.0.pre6 app/components/avo/index/field_wrapper_component.html.erb
avo-3.0.0.pre4 app/components/avo/index/field_wrapper_component.html.erb
avo-3.0.0.pre3 app/components/avo/index/field_wrapper_component.html.erb
avo-3.0.0.pre2 app/components/avo/index/field_wrapper_component.html.erb
avo-3.0.0.pre1 app/components/avo/index/field_wrapper_component.html.erb
avo-2.33.2 app/components/avo/index/field_wrapper_component.html.erb
avo-2.33.1 app/components/avo/index/field_wrapper_component.html.erb
avo-2.33.0 app/components/avo/index/field_wrapper_component.html.erb
avo-2.32.6 app/components/avo/index/field_wrapper_component.html.erb
avo-2.32.5 app/components/avo/index/field_wrapper_component.html.erb
avo-2.32.4 app/components/avo/index/field_wrapper_component.html.erb
avo-2.32.3 app/components/avo/index/field_wrapper_component.html.erb
avo-2.32.2 app/components/avo/index/field_wrapper_component.html.erb