filmov
tv
Django and Alpine.js - Client Side Filtering and Django Forms Integration

Показать описание
Then we'll create a form with a MultipleChoiceField, allowing users to select and deselect multiple genres of music and filter the form accordingly.
All this will integrate with the directives provided by Alpine, allowing developers to move the logic of filtering to the client, which can be a performance booster for your servers!
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
00:44 Setup
01:12 Creating Django model
01:46 Loading data with custom management script
03:43 Fetching data with x-init directive
07:55 Creating Form class with ChoiceField
10:28 Rendering Alpine-powered field with django-widget-tweaks
13:01 Filtering data by selected genre
14:04 Getting initial value with x-ref directive
15:40 Adding MultipleChoiceField to form class
18:18 Writing JavaScript function to update x-data value on @change event
20:52 JavaScript spread operator with arrays
21:25 Benefits of client-side filtering vs. HTMX-based approach
☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
▶️ Full Playlist:
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
#django #alpinejs #python
Django and Alpine.js - Client Side Filtering and Django Forms Integration
Django and Alpine.js - Introduction to Alpine.js
Dynamic UI in Django with Alpine.js
Django & Alpine.js - Simple and Complex Component State for Building Interactive UIs (a comparis...
HTMX vs AlpineJS - Which should you use for your web app?
I built the same app 10 times // Which JS Framework is best?
HTMX, AlpineJS and Django Messages - Adding Toast / Alert messages in HTMX Responses
htmx in 100 seconds
Django and Alpine.js - Serializing data with django-ninja
eCommerce Website | Django, Tailwind CSS, Alpine.js | Online Store | Free Download
AlpineJS Light Framework - wie Vue JS... nur eben kein Vue #fridayfacts
DjangoCon Europe 2024 | Django + Alpine.js + htmx Ups & Downs
12. Django & Alpine JS - creating a modal #buildIMDBcourse
Why We Should Stop Using JavaScript According to Douglas Crockford (Inventor of JSON)
Django-Taggit - REST Framework integration & tag filtering with Alpine.js
Django, HTMX and Alpine.js - Modals and Forms
Modern apps with Django, HTMX, Tailwind CSS and Alpine.js with Andrej Baranovskij - DCUS 2022
Upload files with Django and Alpine.js in 3 minutes 🏔️🌅
HTML-ivating your Django web app's experience with HTMX, AlpineJS, and streaming HTML - Chris M...
Alpine JS is pretty useful
The Most Important Lesson From HTMX
JavaScript Developers TRYING to Use TypeScript
HTMX, the anti JS framework (vs React)
Django, HTMX and Alpine.js - Building an Accordion component
Комментарии