34 questions
0
votes
2
answers
45
views
Symfony UX LiveComponent with collection
I'm using a LiveComponent to access a form with a OneToMany collection.
Adding an item works perfectly, but when I delete an item, the entire collection is deleted.
The code is below.
->add('...
0
votes
0
answers
73
views
Symfony UX LiveComponent file upload works only on first request
I’m having trouble with file uploads in Symfony UX LiveComponent.
I’m using Symfony 7.2, Symfony UX 2.x, and PHP 8.2.
The problem
I have a LiveComponent form that includes a file upload field.
On the ...
0
votes
1
answer
74
views
How to upload file in Symfony LiveComponent with other form data?
So, as per the docs, this is how we upload a file in Symfony Live components.
If we have to upload a file along with other input, how to do it?
Code from docs:
<p>
<input type="file&...
0
votes
0
answers
193
views
Why when using Symfony UX and Forms I get INVALID CSRF TOKEN?
I have a question regarding Symfony UX Live Components and forms.
Context:
Imagine you have a Parent Component and a nested Child Component. Both are Live Components and both include Symfony FORMS (...
-1
votes
1
answer
127
views
How to resolve tailwind conflicts with twig components default classes
I'm working on a Symfony 7 project with symfony/ux-twig-component v2.22.1 and tales-from-a-dev/twig-tailwind-extra v0.2.1 packages. I sometime have to override some default tailwind classes in my ...
0
votes
1
answer
173
views
Symfony UX - LiveComponent problem with html5 date
I implemented LiveComponent on my form containing a date and other fields.
I use a DateType field compatible with html5. When I use my form and type a date that starts with 0 (eg: 05/10/2024), I have ...
1
vote
0
answers
271
views
Add a form field dynamically with Symfony UX
I want to add a dynamic field in a form. However, when clicking on the concerned field, nothing happens. Indeed, when clicking on the "Can publish a podcast" field, another field should ...
2
votes
1
answer
1k
views
Remove all previous selected options in Tom Select configured with external data
I have two Tom Select (select inputs) configured through Symfony UX Autocomplete and Stimulus :
First holds the main category ("Batterie démarrage moto" in the example).
Second one is ...
0
votes
1
answer
1k
views
Live Component Updating a parent model from a collection child
I'm implementing a LiveComponent that contains a collection of child components. Everything works mostly fine, but I don't see how can I update a parent model if the updated property is an array.
Is ...
1
vote
2
answers
2k
views
Symfony UX - TomSelect Autocomplete custom js controller problem
I'm struggling with configuration of Symfony UX Autocomplete component extension -
My goal is to modify TomSelelct Instance - the way how its rendered and add options like https://tom-select.js.org/...
3
votes
3
answers
4k
views
Symfony ux-react: React component does not render when using react_component()
I've initialized a new Symfony project with version 6.3.3 and wanted to try out the symfony-ux stuff with React. So I followed this guide: https://symfony.com/bundles/ux-react/current/index.html
But I ...
6
votes
4
answers
2k
views
Symfony UX Chart.js just display a blank square
I have followed the official tutorial to get my chart on symfony : https://symfony.com/bundles/ux-chartjs/current/index.html
But the chart does not display, it is just blank. I head that it may be ...
3
votes
1
answer
1k
views
Symfony UX Swup, Unknown "stimulus_controller" function
I'm using symfony 6.3 and I have installed symfony/ux-swup:
//bundles.php
<?php
return [
// ..............
Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true],
...
0
votes
4
answers
1k
views
Add remove button on custom template Tom-Select
I have some problems with the Tom-Select template. When I use the default template, I can delete an item with the Delete button. But when I defined my own, I can't delete anything.
I have my tomSelect ...
2
votes
1
answer
582
views
How to add DateTime adapter to symfony/ux-chartjs?
I am trying to setup ChartJS with Symfony UX. Since a default datetime adapter is not included with ChartJS 3+, I am getting the following error when using time unit in an axis.
This method is not ...
3
votes
2
answers
1k
views
Symfony UX chart does not show chart in easyadmin
I have a problem with displaying a chart in easyadmin. It does show up in the HTML as shown below.
<canvas data-controller="symfony--ux-chartjs--chart" data-symfony--ux-chartjs--chart-...
3
votes
0
answers
1k
views
Symfony-UX / Stimulus - Error connecting controller
I wandet to try the Symfony Cropper UX-Component, but it resulted in an Javascript-Error:
Error connecting controller
TypeError: expected value of type "object" but instead got value "[]...