[Site] More Functional Code, 2x Complex Live Components Examples, few fixes #804
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi!
Prepping ux.symfony.com for 2.8 - very excited about this! Join me on a tour:
1) Invoice Creator Live Component Demo
invoice-creator.mp4
Parent component + collection of child components communicating by emitting events!
2) Product form + modal to create a Category
product-form.mp4
Opens a Bootstrap modal with a child component inside - and closes that modal from a
LiveAction
.3) Much nicer code blocks
Before:
After:
4) Explanations on longer examples
Some examples deserve pointing out a few of the more complex parts. Some of the live component demos now do this:
5) Using a LOT of new features
Smart rendering, emitting events, browser events, etc, etc - MANY new features are being used on the site now.
We're also using (in som
e places) the new
<twig:Component>
syntax from #771. Even though editor support (e.g. for auto-completion) doesn't exist yet, I LOVE this. For example, to render a code block:Thanks everyone for the work, review & testing on a lot of this new stuff. Using the new features on the site has been BLAST.