Ready to get started?

Join Adocasts Plus for $8.00/mo, or sign into your account to get access to all of our lessons.

robot mascot smiling

Storing Lesson Order Changes & Handling Cross-Module Drag & Drops

In this lesson, save the changes made to lessons inside a course when a user uses drag-and-drop to move a lesson. Users can change the lesson order inside a single module or move a lesson into a new module, so we'll need to handle both use cases.

Published
Dec 20
Duration
15m 44s

Developer, dog lover, and burrito eater. Currently teaching AdonisJS, a fully featured NodeJS framework, and running Adocasts where I post new lessons weekly. Professionally, I work with JavaScript, .Net C#, and SQL Server.

Adocasts

Burlington, KY

Chapters

00:00 - Our Goal for this Lesson
00:58 - Handling the Lesson Drag & Drop End Event
02:33 - Defining the Lesson Order Validator
03:24 - Updating the Lessons Ordering & Modules
10:50 - A Recap of our Lesson Order & Module Update Logic
12:28 - Adding the Controller Route Handler
13:07 - Adding the Route Definition
13:35 - Sending the Order Patch Request to the Server
14:27 - Testing our Lesson Order & Module Update on Drag & Drop

Ready to get started?

Join Adocasts Plus for $8.00/mo, or sign into your account to get access to all of our lessons.

Join The Discussion! (0 Comments)

Please sign in or sign up for free to join in on the dicussion.

robot comment bubble

Be the first to Comment!