feat: add support for configuration field multi_string

This commit is contained in:
Benjamin Nussbaum 2025-10-10 16:35:10 +02:00
parent b18d561361
commit 583d8b2440
2 changed files with 85 additions and 0 deletions

View file

@ -839,6 +839,15 @@ HTML;
</flux:select>
@endif
</div>
@elseif($field['field_type'] === 'multi_string')
<flux:input
label="{{ $field['name'] }}"
description="{{ $field['description'] ?? '' }}"
descriptionTrailing="{{ $field['help_text'] ?? 'Enter multiple values separated by commas' }}"
wire:model="configuration.{{ $fieldKey }}"
value="{{ $currentValue }}"
placeholder="{{ $field['placeholder'] ?? 'value1,value2' }}"
/>
@else
<flux:callout variant="warning">Field type "{{ $field['field_type'] }}" not yet supported</flux:callout>
@endif