nova-html-card icon indicating copy to clipboard operation
nova-html-card copied to clipboard

Feature Request LiveWire

Open ekandreas opened this issue 6 years ago • 10 comments

As for ->html and ->view it would be nice with a ->liveWire('my-livewire-component') Sure, I can use views but...

ekandreas avatar Feb 28 '20 14:02 ekandreas

Just reference the livewire blade directly works! Happy!

ekandreas avatar Feb 28 '20 14:02 ekandreas

@ekandreas Could you please explain more so other users can use your info? Thanks!

alies-dev avatar Feb 28 '20 17:02 alies-dev

Just call it! Eg,

return [
    (new HtmlCard())->width('1/3')->view('livewire.cards.my-awesome-livewire-component'),
];

ekandreas avatar Mar 02 '20 10:03 ekandreas

How do you handle "wire:click" when loading your livewire components? all my functionallty is gone when loading livewire component with this example

daggemarren avatar Apr 16 '20 08:04 daggemarren

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.

ekandreas avatar Apr 16 '20 10:04 ekandreas

@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.

alies-dev avatar Apr 16 '20 11:04 alies-dev

Sorry to hear that! The TALL stack is awesome!

ekandreas avatar Apr 16 '20 11:04 ekandreas

Ok, then... Heard of Blade x-components in Laravel? Also a kind of dynamic rendering in blade...

ekandreas avatar Nov 02 '20 19:11 ekandreas

@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 ;)

alies-dev avatar Nov 26 '20 14:11 alies-dev

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).

alies-dev avatar Feb 28 '24 05:02 alies-dev