Feature Request LiveWire
As for ->html and ->view it would be nice with a ->liveWire('my-livewire-component') Sure, I can use views but...
Just reference the livewire blade directly works! Happy!
@ekandreas Could you please explain more so other users can use your info? Thanks!
Just call it! Eg,
return [
(new HtmlCard())->width('1/3')->view('livewire.cards.my-awesome-livewire-component'),
];
How do you handle "wire:click" when loading your livewire components? all my functionallty is gone when loading livewire component with this example
I can't! Right now we can't get the Livewire to work in a html card as it is rendered as plain html-code and not as an interactive php component. Perhaps we can get some kind of response from this package authors to gain this functionality. It would be nice with a ->livewire pipe to the card.
@daggemarren @ekandreas In our team we don't use livewire, so we don't have plans to support this. Feel free to create a PR for support it.
Sorry to hear that! The TALL stack is awesome!
Ok, then... Heard of Blade x-components in Laravel? Also a kind of dynamic rendering in blade...
@ekandreas that's a great idea! You re welcome to create a PR. We’ve added it to our backlog, but it as not a high priority, I assume we'll find a time for it in 1-2 months. So, you can help us to implement it faster ;)
I like this idea, but I think it's out of the responsibility of this package. But I can share an idea: someone can create a new package to support this idea and use it together with this package (like <HtmlCard><LiveWireContent></LiveWireContent></HtmlCard>). I believe it's a more clean and reusable way to build simple but flexible functionality (unix-way).