590 search results for Turbo

... the native close event so we can close everything. But.... (there's always one), how do you handle the following: Let's say the user clicks a link, modal with turbo frame opens but the loading time is longer then ...
... badges in real time with mercure and turbo streams from webhooks. Also, overriding any of the form templates and surrounding it in a turbo frame lets you have a modal anywhere that can load the crud forms for any entity ...
weaverryan
weaverryan
Read Full Comment
Thanks for the response Ryan, but still not working This is the current error now: ``` Module build failed (from ./node_modules/@symfony/stimulus-bridge/dist/webpack/loader.js): Error: The file "@symfony/ux-turbo ...
... server, that is just a normal link, right? You shouldn't need to do anything (write any custom JavaScript) - you can just allow the link to be a normal link and then, on click, Turbo will follow it. I feel I'm missing some ...
weaverryan
weaverryan
Read Full Comment
Hi Ryan Thanks. Yes I wanted to use new Update() or Entity Broadcast to render user specific views. Returning the turbo frame with the src to get this content works well e.g. ``` // _list.stream.html.twig ...
Hey Ewald V.! That's... actually a great question! There are two parts to this: A) In Turbo, they need to know which things we consider as "assets" that should be tracked. So, they make us add this attribute. Maybe ...
weaverryan
weaverryan
Read Full Comment
... IIRC it's a change in Turbo, so now no error is supposed to happen anymore.
I think this chapter can be skipped for users of a recent version of Turbo :) ...
104 lines | src/Controller/ProductAdminController.php
// ... lines 1 - 81
return $this->renderForm('product_admin/edit.html.twig', [
'product' => $product,
'form' => $form,
'formTarget' => $request->headers->get('Turbo-Frame', '_top')
]);
}
// ... lines 89 - 104
See Code Block in Script
36 lines | templates/registration/register.html.twig
// ... lines 1 - 4
{% block metas %}
<meta name="turbo-cache-control" content="no-preview">
{% endblock %}
// ... lines 8 - 36
See Code Block in Script
84 lines | templates/base.html.twig
// ... lines 1 - 11
{% endblock %}
</head>
<body data-turbo="false">
<div class="page-top">
<header class="header px-2">
// ... lines 17 - 84
See Code Block in Script
34 lines | templates/_flashes.html.twig
{% for message in app.flashes('success') %}
<div
// ... lines 3 - 4
data-turbo-temporary
// ... lines 6 - 7
>
// ... lines 9 - 31
</div>
{% endfor %}
See Code Block in Script
42 lines | assets/app.js
// ... lines 1 - 20
document.addEventListener('turbo:load', () => {
// View Transitions don't play nicely with Turbo cache
// if (shouldPerformTransition()) Turbo.cache.exemptPageFromCache();
});
// ... lines 25 - 42
See Code Block in Script
37 lines | importmap.php
// ... lines 1 - 15
return [
// ... lines 17 - 23
'@hotwired/stimulus' => [
// ... line 25
'preload' => true,
],
'@symfony/stimulus-bundle' => [
// ... line 29
'preload' => true,
],
'@hotwired/turbo' => [
// ... line 33
'preload' => true,
],
];
See Code Block in Script
Blog
Live Stream 8 Live Component JavaScript Internals

... & the new UX 2.14.1 version 1:30 Pull request for the icon package! 3:30 Monthly release structure for UX 9:30 The new Type component for Symfony 11:45 Turbo 8 is out! 15:00 Hello LiveComponents JavaScript 18:40 What happens ...

Blog
Your LAST Stack

... Components A AssetMapper S Stimulus (or Symfony) T Turbo (or Twig) LAST stack is about web standards. AssetMapper (stable in Symfony 6.4) leverages importmaps: a standard that's now supported on all major browsers (and ...

... controllers. It is amazing when you get symfony ux in there. I add/remove rows on my index pages and update menu badges in real time with mercure and turbo streams from webhooks. Also, overriding any of the form templates and ...
Hi Ryan, nice work!! Just a note. When I have nested stimulus controllers and the child one inside a turbo frame like this: ``` ``` The method_name in controller_2 is ...
Hi Thanks for all the great content. Was just wondering if there is some way to keep the existing Turbo frame content instead of replacing it with a temporary loading icon etc until new frame content is rendered? For ...
... ;) > I will also say that Stimulus integration has been the most exciting thing for me since learning Symfony! I feel that same way - along with Turbo. It's completely changed the JavaScript paradigm for me, and ...
weaverryan
weaverryan
Read Full Comment