Loading state for the new OnyxFormElementAction #5717
LukasFahrner
started this conversation in
Ideas
Replies: 1 comment
|
Thanks for the request, we will take a look at this :) In the meantime, you can manually add a OnxyLoadingIndicator component and toggle it using a v-if / v-else during loading |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Basically I propose that there should be a loading state for the OnyxFormElementAction component.
My use case requires a modal to be opened after clicking the OnyxFormElementAction in the trailing slot of an OnyxInput.
Said modal then contains a hierarchical view of folder paths, which can be clicked. After clicking on one path, it will prefill the OnyxInput with that path. You are then able to further customize the path, as the selection only prefills the OnyxInput.
The thing is that the prefill paths of the modal are fetched from an api and thus need some time to appear in the frontend modal.
Of course it is possible to display a loading state in the opened modal, but then the user has to wait for it to finish loading while the user could have spent his time filing out other form elements in the meantime.
If the loading state could be represented by the OnyxFormElementAction from the get go, its is directly clear to the user that something is loading while looking at the form itself.
Before I knew about the OnyxFormElementAction I was using a simple OnyxIconButton in the trailing slot which already has a loading state! But I would like to use the more appropriate OnyxFormElementAction for the future!
All reactions