We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be nice if you could inherit live component from normal component.
{# templates/components/Alert.html.twig #} <div {{ attributes.defaults({class: 'alert alert-'~type}) }}"> {% block content %}{% endblock %} </div>
{# templates/components/SuccessAlertLiveComponent.html.twig #} {% component Alert with attributes.defaults({class:"foo"}) %} {{ block(outerBlocks.content) }} {% endcomponent %}
Is something like this possible?
The text was updated successfully, but these errors were encountered:
LiveComponent have no knowledge of their "outerblocks" so it would not work during re-render
Sorry, something went wrong.
Yes, of course. Stupid example copied from docs. I have problem only with this "with attributes.defaults({class:"foo"})" . With this I get parse error
Can you maybe show the code that triggers this error?
No branches or pull requests
It would be nice if you could inherit live component from normal component.
Is something like this possible?
The text was updated successfully, but these errors were encountered: