All Projects โ†’ scttcper โ†’ ngx-droppable

scttcper / ngx-droppable

Licence: MIT License
Give file dropping super-powers to any element or component

Programming Languages

typescript
32286 projects
SCSS
7915 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to ngx-droppable

dflex
The sophisticated Drag and Drop library you've been waiting for ๐Ÿฅณ
Stars: โœญ 806 (+2342.42%)
Mutual labels:  droppable
Dnd Kit
A modern, lightweight, performant, accessible and extensible drag & drop toolkit for React.
Stars: โœญ 3,456 (+10372.73%)
Mutual labels:  droppable
Sortable
Reorderable drag-and-drop lists for modern browsers and touch devices. No jQuery or framework required.
Stars: โœญ 23,641 (+71539.39%)
Mutual labels:  droppable

ngx-droppable npm CircleCI coverage

Give file dropping super-powers to any element or component

Based on droppable.js

Demo: https://ngx-droppable.vercel.app

Dependencies

Latest version available for each version of Angular

@ctrl/ngx-droppable Angular
current >= 10.x

Install

npm install @ctrl/ngx-droppable

Use

Import and Add to module

import { DroppableModule } from "@ctrl/ngx-droppable";

Add droppable directive to element

<div droppable (filesDropped)="handleFilesDropped($event)"></div>

[Inputs]

name type default description
isClickable boolean true prompt for files when clicked
acceptsMultipleFiles boolean true allow multiple files dropped or selected
appendStatusClasses boolean true append CSS class when files are dragged on element
dragOverClass string 'dragover' class added when files are hovered over element
accept string | false false limit accepted file types via MIME see mdn

(Ouput)

name type description
filesDropped File[] An array of the files blobs that have been added

License

MIT


GitHub @scttcper  ยท  Twitter @scttcper

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].