Is it possible to also create forms in Hubleto using only views and ADIOS input components or do I have to make every form with React, if I want to use ADIOS input components?
Is it possible to also create forms in Hubleto using only views and ADIOS input components or do I have to make every form with React, if I want to use ADIOS input components?
Share Improve this question edited Feb 4 at 12:06 hakre 198k55 gold badges447 silver badges855 bronze badges Recognized by PHP Collective asked Feb 4 at 11:35 Rindo789Rindo789 214 bronze badges 1- Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. – Community Bot Commented Feb 5 at 10:40
1 Answer
Reset to default 1You can render forms in Twig views using notation, for example to render a form for the "Project" model you can create following Twig-based view:
<app-form
uid="modify-project-form"
model="MyApp/Models/Project"
></app-form>
Do not fet to register the Form.tsx component in your index.tsx file:
import Form from "adios/Form";
app.registerReactComponent('Form', Form);