phyce
phyce
TCTwill CMS
Created by phyce on 3/8/2025 in #👊support
Using custom form inputs in a TwillBlockComponent
I managed to figure it out. Just had to create a class extending BaseFormField and another one extending TwillFormComponent in order to be able to use the field in getForm(). I followed the implementation for a basic input and got it to work. However it appears that there is no need anymore to add any logic in the blade template to push to vuexStore. is that right? _text_area.blade.php works just by having
<a17-text-area
label="{{ $label }}"
@include('twill::partials.form.utils._field_name')
in-store="value"
></a17-text-area>
<a17-text-area
label="{{ $label }}"
@include('twill::partials.form.utils._field_name')
in-store="value"
></a17-text-area>
and nothing else. when is additional logic to push to vuexStore needed? I would like to understand
2 replies