Sha256: 3380059c0b51284f0c21b911d4330f952f6e5ae59d1a5d503614c5553fffac52

Contents?: true

Size: 1.12 KB

Versions: 28

Compression:

Stored size: 1.12 KB

Contents

<%= edit_field_wrapper field: @field,
  index: @index,
  form: @form,
  resource: @resource,
  displayed_in_modal: @displayed_in_modal do %>
  <div data-controller="tags-field">
    <%# dummy field %>
    <%= text_field_tag "#{@field.id}-dummy", '',
      class: classes("w-full"),
      data: {
        'tags-field-target': 'fakeInput',
      },
      disabled: @field.readonly,
      placeholder: @field.placeholder,
      style: @field.get_html(:style, view: view, element: :input),
      value: ''
    %>
    <%# real field %>
    <%= @form.text_field @field.id,
      class: classes("hidden w-full"),
      data: {
        'tags-field-target': 'input',
        'whitelist-items': @field.suggestions.to_json,
        'disallowed-items': @field.disallowed.to_json,
        'enforce-suggestions': @field.enforce_suggestions ? 1 : 0,
        'delimiters': @field.delimiters,
        'close-on-select': @field.close_on_select ? 1 : 0,
      },
      disabled: @field.readonly,
      placeholder: @field.placeholder,
      style: @field.get_html(:style, view: view, element: :input),
      value: @field.field_value.to_json
    %>
  </div>
<% end %>

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
avo-2.13.1 app/components/avo/fields/tags_field/edit_component.html.erb
avo-2.13.0 app/components/avo/fields/tags_field/edit_component.html.erb
avo-2.12.1.pre.1 app/components/avo/fields/tags_field/edit_component.html.erb
avo-2.12.0 app/components/avo/fields/tags_field/edit_component.html.erb
avo-2.11.3.pre.3 app/components/avo/fields/tags_field/edit_component.html.erb
avo-2.11.3.pre.2 app/components/avo/fields/tags_field/edit_component.html.erb
avo-2.11.3.pre.1 app/components/avo/fields/tags_field/edit_component.html.erb
avo-2.11.2.pre.3 app/components/avo/fields/tags_field/edit_component.html.erb
avo-2.11.2.pre.2 app/components/avo/fields/tags_field/edit_component.html.erb
avo-2.11.2.pre.1 app/components/avo/fields/tags_field/edit_component.html.erb
avo-2.11.1.pre.3 app/components/avo/fields/tags_field/edit_component.html.erb
avo-2.11.1 app/components/avo/fields/tags_field/edit_component.html.erb
avo-2.11.1.pre.2 app/components/avo/fields/tags_field/edit_component.html.erb
avo-2.11.1.pre.1 app/components/avo/fields/tags_field/edit_component.html.erb
avo-2.11.0 app/components/avo/fields/tags_field/edit_component.html.erb
avo-2.10.3.pre.1 app/components/avo/fields/tags_field/edit_component.html.erb
avo-2.10.2 app/components/avo/fields/tags_field/edit_component.html.erb
avo-2.9.2.pre1 app/components/avo/fields/tags_field/edit_component.html.erb
avo-2.10.0 app/components/avo/fields/tags_field/edit_component.html.erb
avo-2.9.1.pre7 app/components/avo/fields/tags_field/edit_component.html.erb