You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unlock the potential of Symfony's <a href="https://symfony.com/doc/current/reference/forms/types/collection.html"><code>CollectionType</code></a> while
36
+
writing zero JavaScript.
37
+
<br>
38
+
This demo shows off adding and removing items entirely in PHP & Twig.
39
+
EOF
26
40
),
27
41
newLiveDemo(
28
42
'dependent-form-fields',
29
43
name: 'Dependent Form Fields',
30
44
description: 'After selecting the first field, automatically reload the options for a second field.',
Say goodbye to the hassle of dependent form fields with Live Components.
48
+
<br>
49
+
Whip up a <a href="https://symfony.com/doc/current/form/dynamic_form_modification.html#form-events-submitted-data">form with dynamic events</a>and then head out for a well-deserved lunch.
50
+
EOF
32
51
),
33
52
newLiveDemo(
34
53
'voting',
35
54
name: 'Up & Down Voting',
36
55
description: 'Save up & down votes live in pure Twig & PHP.',
37
56
route: 'app_live_components_demo_voting',
57
+
longDescription: <<<EOF
58
+
With each row as its own component, it's easy to add up & down voting + keep track of which items have been voted on.
59
+
<br>
60
+
This uses a <a href="https://symfony.com/bundles/ux-live-component/current/index.html#actions">LiveAction</a> to save everything with Ajax.
61
+
EOF
38
62
),
39
63
newLiveDemo(
40
64
'inline_edit',
41
65
name: 'Inline Editing',
42
66
description: 'Activate an inline editing form with validation.',
43
67
route: 'app_live_components_demo_inline_edit',
68
+
longDescription: <<<EOF
69
+
Inline editing? Simple. Use LiveComponents to track if you're in "edit" mode, let
70
+
the user update any fields on your entity, and save through a <code>LiveAction</code>.
71
+
EOF
44
72
),
45
73
newLiveDemo(
46
74
'chartjs_updating',
47
75
name: 'Auto-Updating Chart',
48
76
description: 'Render & Update a Chart.js chart in real-time.',
49
77
route: 'app_live_components_demo_chartjs',
78
+
longDescription: <<<EOF
79
+
What do you get with Live Components + UX Chart.js + UX Autocomplete?
0 commit comments