-
Notifications
You must be signed in to change notification settings - Fork 69
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
Allow custom navigation feedback #513
Comments
We generally don't support compilation for temporary state classes like A compiler/destructor would also not be the best tool here, as there are cases where What I think we should support is events like |
OK got it - would be great to have this documented on the compiler page
That's what I expect as it's not loading anymore - the loading indicator should disappear as soon as it's not loading (or processing) anymore. The result of that is a different question and should be handled differently.
I'm not sure what "feedback" means as it's a very general term not specific to loading/processing something. |
Unpoly uses the |
Would it be possible to take action on the following:
|
Hi @triskweline, After wrapping my head about this once again ... I think it would be enough to support a different target for E.g.: Define custom feedback target instead of boolean to <div>
<div id="my-loading-indicator">...</div>
<div id="my-target">...</div>
<a href="/bar" up-follow up-target="#my-target" up-feedback="#my-loading-indicator">Bar</a>
</div> What do you think? |
Hi @marc-mabe. Thanks for thinking about this some more. While I like the minimalism of this, here's one concern: One advantage of an event would be to delegate this opinion to individual user apps. |
Hi @triskweline,
|
Bug description
Unpoly adds the class
up-loading
on target elements that are currently loading.I need to add a loading spinner in this case but not on this element but on another element before that I marked with
up-loading-spinner
.With the following script I want to accomplish that but it does not get triggered if unpoly adds the
up-loading
class. It gets triggered if I add the class manually but obviously this does not help.Reproduction project
https://glitch.com/edit/#!/orchid-placid-garden
This shows what I want to accomplish but I can't emulate a late server response (or I don't know how) so I manually added an
up-loading
to the table target.You should see the spinner on the table as expected but if unpoly adds the
up-loading
class the compiled handler is not triggered.Steps to reproduce the behavior:
up-loading
on table element#table1
up-loading
was added (and removed) by unpolyExpected behavior
If unpoly adds
up-loading
to an element compiled handlers targeting this element should be triggered and cleaned up on removingup-loading
again.Browser version
The text was updated successfully, but these errors were encountered: