Skip to content
New issue

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

[Feature Request] Widget for loading a LiveWire component #89

Closed
tabacitu opened this issue Oct 21, 2020 · 5 comments
Closed

[Feature Request] Widget for loading a LiveWire component #89

tabacitu opened this issue Oct 21, 2020 · 5 comments

Comments

@tabacitu
Copy link
Member

If you're using Livewire in your admin panel (maybe dashboard, maybe elsewhere) we should probably make it dead-simple and consistent to load that component into a page. And I can't think of a better way than using our Widgets.

Plus, you could then use packages that provide certain LiveWire components and use those, instead of building your own. For example https://github.com/asantibanez/livewire-charts

@Adesin-fr
Copy link

Sure,
I'm diving right into livewire now, and have already a few ideas...
The first that I see, is automatically including livewire styles and scripts on the parent template...

Meanwhile, I don't know how we could integrate livewire in standard crud forms...

Any idea ?

@tabacitu
Copy link
Member Author

tabacitu commented Dec 8, 2020

Neither do I in standard forms, I don't think Livewire makes sense there because it's different UI paradigm:

  • livewire - live forms / widgets / etc
  • create/update - only save stuff after you click the button at the bottom of the form

There could be other stuff inside forms though, like fields with instant validation. Think of "slug" or smth like that, which will tell you if the slug is unique as you type - that could be genuinely useful I think. That could take the form of a new field... maybe live_text?! Idk.

But mostly I think LiveWire will be useful for live widgets, and for (maybe, at some point) rewriting some of the operations. Like Reorder. Or maybe after a huge effort, even List. Of course, this is a tricky thing to do since not everyone will like LiveWire. So we'd probably need to create alternative operations, something like:

  • LiveList
  • LiveCreate
  • LiveUpdate
  • LiveDelete
  • LiveReorder
    etc.

Those are the wide directions I think we might be able to go. Eager to see what you think @LemarinelNet after giving LiveWire a whirl.

@Adesin-fr
Copy link

Great to see your thoughts !

I'm really new to livewwire, but worked with it on a new project last two days, so I'm starting to understand a bit more ;)

I find livewire very interresting for backend devs that don't have to understand a sh.t of javascript to make things interactive ! really powerfull !
That's something I like really, I can write many logic from behind the scenes, without typing any single javascript word !
Sometimes , as a great friend of mine said, you have to "unlearn what you learned" before, i.e. to show a modal from backend, just changing a property, and not with javascript...
Well, enough said !

Yes, I think that LiveList and other operations would be the good way to go.
LiveList is probably (as far I understand it) the easiest to start with...

@tabacitu
Copy link
Member Author

Sometimes , as a great friend of mine said, you have to "unlearn what you learned" before, i.e. to show a modal from backend, just changing a property, and not with javascript...

I agree. Good new is that out of all "unlearning" processes... I've found livewire to be the easiest 😀 And there's a special place in my heart for tools that help me eliminate JS code - the more the better 😂

LiveList is probably (as far I understand it) the easiest to start with...

I see it the other way around - I think that's the most difficult part, due to all the features we've crammed into it over the years. Consider filters, search, pagination, buttons, details_row, responsive_table, searchLogic, orderLogic, columnPriority, etc 🤯

@tabacitu tabacitu moved this to Todo in This week Mar 1, 2023
@phpfour phpfour moved this from Todo to Needs Testing, Review or Docs in This week Mar 13, 2023
@tabacitu tabacitu assigned tabacitu and unassigned phpfour Jun 5, 2023
@tabacitu tabacitu moved this from 🎯 To Do to ⏳ Needs Testing / Review in Backpack v6.0.0 (🚀 on 1st of July 2023) Jun 20, 2023
@tabacitu
Copy link
Member Author

Done in Laravel-Backpack/CRUD#4971

@github-project-automation github-project-automation bot moved this from ⏳ Needs Testing / Review to Done in Backpack v6.0.0 (🚀 on 1st of July 2023) Jun 20, 2023
@github-project-automation github-project-automation bot moved this from Needs Testing, Review or Docs to Done in This week Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

3 participants