Third-party plugins
Drag & Drop
Implement drag-and-drop, reorderable lists with ease using Sortable.js, fully compatible with modern browsers and touch devices.
Getting started
Setup
Below are the comprehensively outlined steps you can follow to seamlessly integrate <a href="https://sortablejs.github.io/Sortable/" target="_blank" class="link link-primary font-semibold">SortableJs</a> with Semji.
<body>
<script src="../path/to/vendor/sortablejs/Sortable.min.js"></script>
</body>JavaScript
const example1 = document.querySelector('#example')
Sortable.create(example1, {
animation: 150,
});Basic example
Simple list example
Here’s how a basic drag-and-drop list appears with the simplest markup.
- Weekly Insights
- Resource Center
- Team Collaboration
- Product Updates
- Community Forum
Illustrations
Stats
These stats represent a real-time overview of key business metrics, including orders, revenue, invoices, and shipments
Images
This showcases a list of avatars with a drag-and-drop interaction, perfect for user selection or grouping.
Shared
Example of a shared task list with 'Pending' and 'Completed' tasks, each assigned to a user with an avatar.
Pending Tasks
-
Design new company logo.
-
Prepare quarterly report.
-
Schedule team meeting.
-
Update client database.
-
Plan marketing campaign.
Completed Tasks
-
Launch new website.
-
Finalize budget proposal.
-
Conduct employee training.
-
Organize office relocation.
-
Attend industry conference.
Cloning
Example of a cloned task list with 'Pending Tasks' and 'Completed Tasks', each task assigned to a user with an avatar."
Pending Tasks
-
Develop mobile app prototype.
-
Research market trends.
-
Organize product launch event.
-
Update company policy documents.
-
Design promotional materials.
-
Prepare investor pitch deck.
Completed Tasks
-
Complete quarterly audit.
-
Launch social media campaign.
-
Train new staff members.
-
Upgrade office equipment.
-
Submit project deliverables.
-
Host client appreciation dinner.
Disabled Sorting
Try sorting the pending tasks. It is not possible because it has it's sort option set to false. However, you can still drag from the list on the pending tast to the list on the completed task.
Pending Tasks
- Compile Q4 financial statements.
- Review vendor contracts.
- Test new software deployment.
- Create new onboarding materials.
- Analyze customer satisfaction survey.
Completed Tasks
- Launch internal newsletter.
- Finalize project timeline for new product.
- Conduct annual security audit.
- Hold Q3 review meeting with stakeholders.
- Complete brand style guide.
- Update remote work policy.
Handle
Example of a list where items can be rearranged using a draggable handle, allowing only the handle to be used for drag-and-drop functionality.
- Weekly Insights
- Resource Center
- Team Collaboration
- Product Updates
- Community Forum
Nested
Example of a nested list where you can drag and drop items to reorder them, even within different levels. Each item has a handle for easy dragging and rearranging.
Swap
The <a href="https://github.com/SortableJS/Sortable/tree/master/plugins/Swap" target="_blank" class="link link-primary">Swap</a> plugin changes the behaviour of Sortable to allow for items to be swapped with eachother rather than sorted.
- Weekly Insights
- Resource Center
- Team Collaboration
- Product Updates
- Community Forum