
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
ember-file-drop-zone
Advanced tools
easily add a dropzone to enable file drag and drop to your ember app
easily add a dropzone to enable file drag and drop to your ember app
ember install ember-file-drop-zone
check out the demo page
Ember file drop-zone provides both a mixin to add to existing components and a simple component that can be used in block form.
See the source code of the demo app for more complex examples
{{#file-drop-zone onDrop=(action "addFiles")}}
just drop your files here...
{{/file-drop-zone}}
import Component from '@ember/component';
import DropZone from 'ember-file-drop-zone/mixins/file-drop-zone';
export default Component.extend(DropZone, {
});
Paramter | type | default | description |
---|---|---|---|
disabled | boolean | false | when set to true, the dropzone is disabled and files can no longer be dropped |
called when files have been dropped
files an EmberArray of js file objects that were dropped
called when files are being dragged over the dropzone
called when files are no longer dragged over the dropzone
This addon does not provide any predefined styles. However, it applies appropriate css class names so that look can be modified as needed.
class | description |
---|---|
ember-file-drop-zone | Used to style the default state of the dropzone |
disabled | Applied when the dropzone is disabled |
dragging | Applied when one or more files are current being dragged over the dropzone |
Please see app.css for a styling example:
.ember-file-drop-zone {
// initial styles
}
.ember-file-drop-zone.disabled {
// styles when disabled
}
.ember-file-drop-zone.dragging:not(.disabled) {
// styles when files are being dragged over the window, but not over the dropzone and dropzone is not disabled
}
.ember-file-drop-zone.hovering {
// styles when files are being dragged over the dropzone (independent of the disabled state)
}
See the Contributing guide for details.
This project is licensed under the MIT License.
FAQs
easily add a dropzone to enable file drag and drop to your ember app
The npm package ember-file-drop-zone receives a total of 152 weekly downloads. As such, ember-file-drop-zone popularity was classified as not popular.
We found that ember-file-drop-zone demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.