Adding the Classes
Explore how to define TaskPriority and TaskItem classes to model tasks, create a Dropzone Razor component, and enable drag-and-drop functionality. Understand adding styling with CSS isolation to assemble an interactive Kanban board using Blazor WebAssembly.
We'll cover the following...
We'll cover the following...
We need to add a TaskPriority enum and a TaskItem class. We do this as follows:
- Right-click the
KanbanBoardproject and select the “Add, New Folder” option from the menu. - Name the new folder
Models. - Right-click the
Modelsfolder and select the “Add, Class” option from the menu. - Name the new class
TaskPriority. - Click the “Add” button.
- Replace the class with the following enum:
- Right-click the
Modelsfolder and select the “Add, Class” option from the menu. - Name the new class