Just a simple little utility module to compliment django-htmx
by implementing an Action
object class, which is similar to a Django Form
. The idea is you can implement a button with HTMX that makes a POST request to a specific URL endpoint and handle it as you would a form, utilizing validation and all. A view class is implemented with HtmxActionMixin
.
Also implements functionality for reloading forms when they fail validation. Simply use HtmxFormMixin
on your view.
-
Notifications
You must be signed in to change notification settings - Fork 0
License
Naggafin/django-htmx-utils
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published