-
Notifications
You must be signed in to change notification settings - Fork 60
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
Loadable attribute for inputs #1286
Comments
Good point, here's an API I could envision. What are everyone's thoughts? <flux:input wire:model="search" /> -> no loading indicator ever
<flux:input wire:model.live="search" /> -> loading indicator when request is out
<flux:input wire:model.live="search" :loading="false" /> -> no loading indicator ever
<flux:input loading /> -> always show loading indicator
<flux:input loading="foo" /> -> show loading indicator when a request is out for the foo property (wire:loading + wire:target type deal) |
This looks like a good solution to me, and it would solve my use case 👍 |
Yep I agree too! Will see if I can get it running 😁 |
I've submitted a PR with this implementation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The documentation has quite an elegant example of an inset loader on an input:
I might be missing something but how exactly would this be used with Livewire? I can use
<flux:field>
here and recreate the icon element from the input component as such:But this doesn't seem like a great solution. I could imagine something along the lines of
copyable
,viewable
, etc.Originally posted by @benjibee in #332
The text was updated successfully, but these errors were encountered: