All Projects → misha130 → ngx-drag-and-drop-lists

misha130 / ngx-drag-and-drop-lists

Licence: MIT license
Angular drag and drop component for lists

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to ngx-drag-and-drop-lists

react-native-dnd-board
A drag and drop Kanban board for React Native.
Stars: ✭ 41 (-12.77%)
Mutual labels:  drag-and-drop
ngx-sortable
ngx-sortable is an angular sortable list components that support drag and drop sorting
Stars: ✭ 19 (-59.57%)
Mutual labels:  drag-and-drop
solid-dnd
A lightweight, performant, extensible drag and drop toolkit for Solid JS.
Stars: ✭ 251 (+434.04%)
Mutual labels:  drag-and-drop
BAT FFMPEG
Batch script files for FFMPEG (Microsoft Windows and DOS, OS/2 🦄)
Stars: ✭ 104 (+121.28%)
Mutual labels:  drag-and-drop
smaller-sites
Smaller Sites is a small BUT Powerful, free and easy to use drag and drop builder for blogs, websites or e-commerce stores. Designed for everyone Developers and non Developers. You can use it to design your next website. The goal is to create something like webflow
Stars: ✭ 27 (-42.55%)
Mutual labels:  drag-and-drop
HoveringCallback
Drag & drop item decorator for RecyclerView with support for highlighting hovered items.
Stars: ✭ 15 (-68.09%)
Mutual labels:  drag-and-drop
elm-dnd
Build great UI with drag-and-drop simple
Stars: ✭ 29 (-38.3%)
Mutual labels:  drag-and-drop
PTXQC
A Quality Control (QC) pipeline for Proteomics (PTX) results generated by MaxQuant
Stars: ✭ 34 (-27.66%)
Mutual labels:  drag-and-drop
easy-email
React.js Drag-and-Drop Email Editor based on MJML. Transform structured JSON data into major email clients compatible HTML. Written in Typescript and supported both in browser and Node.js.
Stars: ✭ 449 (+855.32%)
Mutual labels:  drag-and-drop
react-drop-n-crop
An opinionated implementation of react-dropzone and react-cropper
Stars: ✭ 17 (-63.83%)
Mutual labels:  drag-and-drop
react-butterfiles
🦋 Component for building file fields - from basic file inputs to drag and drop image galleries.
Stars: ✭ 44 (-6.38%)
Mutual labels:  drag-and-drop
orderable stack
A Flutter orderable stack widget
Stars: ✭ 83 (+76.6%)
Mutual labels:  drag-and-drop
react-magic-dropzone
✨Magically drag and drop files/links for uploading
Stars: ✭ 11 (-76.6%)
Mutual labels:  drag-and-drop
loopple
Drag & drop dashboard builder
Stars: ✭ 180 (+282.98%)
Mutual labels:  drag-and-drop
drop
A LÖVE visualizer and music player
Stars: ✭ 17 (-63.83%)
Mutual labels:  drag-and-drop
FlutterBoardView
BoardView written for the flutter framework.
Stars: ✭ 82 (+74.47%)
Mutual labels:  drag-and-drop
builder
Visual Composer Website Builder is a drag and drop editor for WordPress.
Stars: ✭ 64 (+36.17%)
Mutual labels:  drag-and-drop
ng2-gridstack
A gridstack component for Angular2+
Stars: ✭ 12 (-74.47%)
Mutual labels:  drag-and-drop
DailyFeed
iOS client for newsapi.org
Stars: ✭ 128 (+172.34%)
Mutual labels:  drag-and-drop
react-table-hoc-draggable-columns
ReactTable HOC for draggable columns
Stars: ✭ 27 (-42.55%)
Mutual labels:  drag-and-drop

ngx-drag-and-drop-lists

Angular directives that allow you to build sortable lists with the native HTML5 drag & drop API. The directives can also be nested to bring drag & drop to your WYSIWYG editor, your tree, or whatever fancy structure you are building.

Demo

Credits to the original creator

This library is inspired by the https://github.com/marceljuenemann/angular-drag-and-drop-lists library which was written in AngularJS.

Drag Element Inputs

  • dndDraggable Required attribute. Signifies that this element is part of the dndDraggable. Can receive options on how to behave of the following type:
    interface DndDraggableConfig {
        draggable: boolean;
        effectAllowed: 'move' | 'copy' | 'link';
    }
  • dndObject Required attribute. Represents the object that is actually dragged, the data.

  • dndType Required attribute. Tells what is the type of the data

  • dndDragDisabled Tells whether the drag ability is disabled or not

Drag Element Outputs

  • dndDragStart An event that fires when a drag starts

  • dndDragEnd An event that fires when a drag ends

  • dndCopied An event that fires when a copy effect happens

  • dndMoved An event that fires when a move effect happens

  • dndLinked An event that fires when a link effect happens

  • dndCanceled An event that fires when a drag cancels

  • dndSelected An event that fires when an element is clicked and not dragged

CSS classes

  • dndDragging This class will be added to the element while the element is being dragged. It will affect both the element you see while dragging and the source element that stays at it's position. Do not try to hide the source element with this class, because that will abort the drag operation.
  • dndDraggingSource This class will be added to the element after the drag operation was started, meaning it only affects the original element that is still at it's source position, and not the "element" that the user is dragging with his mouse pointer

Drag List Inputs

  • dndList Required attribute. Signifies that this list is part of the dndList. Can receive options on how to behave of the following type:
    interface DndListSettings {
        allowedTypes: string[];
        effectAllowed: 'move' | 'copy' | 'link';
        disabled: boolean;
        externalSources: boolean;
        horizontal: boolean;
    }
  • dndModel Required attribute. The array that holds the objects

  • dndPlaceholder An element that should be displayed as a placeholder before a drag.

Drag Element Outputs

  • dndDragOver An event that fires when an element is dragged over a list

  • dndDrop An event that fires when an element is dropped upon a list

  • dndInserted An event that happens after a drop if the object was actually inserted

CSS classes

  • dndDragover This class will be added to the list while an element is being dragged over the list.

dndNoDrag attribute

Use the dndNoDrag attribute inside of dndDraggable elements to prevent them from starting drag operations. This is especially useful if you want to use input elements inside of dndDraggable elements or create specific handle elements.

dndHandle attribute

Use the dndHandle directive within a dndNoDrag element in order to allow dragging of that element after all. Therefore, by combining dndNoDrag and dndHandle you can allow dndDraggable elements to only be dragged via specific handle elements.

Example 1

      <div *ngFor="let list of models.lists;let i = index">
        <div class="panel panel-info">
          <div class="panel-heading">
            <h3 class="panel-title">List {{i}}</h3>
          </div>
          <div class="panel-body">
            <ul [dndList]
              [dndModel]="list">
              <li *ngFor="let item of list;let i = index"
                [dndDraggable]
                [dndType]="'item'"
                [dndObject]="item"
                (dndMoved)="removeMovedItem(i, list)"
                [class.selected]="models.selected === item">
                {{item.label}}
              </li>
            </ul>
          </div>
        </div>

Example 2

      <div *ngFor="let list of models.lists;let i = index">
        <div class="panel panel-info">
          <div class="panel-heading">
            <h3 class="panel-title">List {{i}}</h3>
          </div>
          <div class="panel-body">
            <ul [dndList]="{
                disabled: false,
                effectAllowed: 'move',
                allowedTypes: ['item']}"
              [dndModel]="list">
              <li *ngFor="let item of list;let i = index"
                [dndType]="'item'"
                [dndDraggable]="{draggable:true, effectAllowed:'move'}"
                [dndObject]="item"
                (dndMoved)="removeMovedItem(i, list)"
                (dndSelected)="log('selected')"
                [class.selected]="models.selected === item">
                {{item.label}}
              </li>
            </ul>
          </div>
        </div>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].