Replies: 1 comment
-
This is getting somewhere: 6d7d53b... one issue to solve and it should give developers the ability to bind a virtual component onto a block by just defining a magewire argument with a true value. It now also enables to unbind magewire from a block by defining false! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sometimes you just want to transform a block into a Magewire component so it's able to just refresh itself based on a emit. It would be a cool little feature when you have the option to just wire it within the layout XML, without a physical class, and Magewire will automatically generate a virtual component class for it.
Can look like this:
This should be done in:
Where a check can be made if the magewire argument
=== true
.Beta Was this translation helpful? Give feedback.
All reactions