Add organize_enabled toggle for folders and improve UI with loading states
This commit is contained in:
@@ -31,3 +31,18 @@ is preferred, and this is less preferred:
|
||||
# check if the user is an adult
|
||||
x = age >= 18
|
||||
```
|
||||
|
||||
9. Buttons should be disabled, and a spinner should replace the icon content when loading. Only the button that was clicked should be disabled though. Typically this is done something like this:
|
||||
```
|
||||
<div data-loading-states>
|
||||
<button class="..." hx-get="..." data-loading-disable>
|
||||
<i class="fas fa-cog mr-2" data-loading-class="!hidden"></i>
|
||||
<span data-loading-class="!hidden">Click Me!</span>
|
||||
<span class="loading loading-spinner loading-xs hidden" data-loading-class-remove="hidden"></span> </button>
|
||||
</div>
|
||||
```
|
||||
This will scope the disable to just the button, and disabled the button from being clicked. When in a modal, the whole modal should be disabled.
|
||||
|
||||
### context7 documentation library ids:
|
||||
* HTMX: /bigskysoftware/htmx
|
||||
* HTMX extensions: /bigskysoftware/htmx-extensions
|
||||
|
||||
Reference in New Issue
Block a user