Sha256: 094f5823b129298c5b73086f2cd76d408394f2c198df4bbbe7c47c89f701f302

Contents?: true

Size: 761 Bytes

Versions: 3

Compression:

Stored size: 761 Bytes

Contents

<%= field_wrapper(**field_wrapper_args, full_width: true) do %>
  <div data-controller="code-field">
    <%= @form.text_area @field.id,
      value: @field.value,
      class: classes("w-full"),
      data: {
        'code-field-target': 'element',
        view: view,
        language: @field.language,
        theme: @field.theme,
        'tab-size': @field.tab_size,
        'read-only': disabled?,
        'indent-with-tabs': @field.indent_with_tabs,
        'line-wrapping': @field.line_wrapping,
        **@field.get_html(:data, view: view, element: :input),
      },
      disabled: disabled?,
      placeholder: @field.placeholder,
      autofocus: @autofocus,
      style: @field.get_html(:style, view: view, element: :input)
    %>
  </div>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
avo-3.16.4 app/components/avo/fields/code_field/edit_component.html.erb
avo-3.16.3 app/components/avo/fields/code_field/edit_component.html.erb
avo-3.16.2 app/components/avo/fields/code_field/edit_component.html.erb