All Projects → kalcifer → ember-dragula

kalcifer / ember-dragula

Licence: MIT license
Simple drag and drop with dragula and ember

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to ember-dragula

Sortable
Reorderable drag-and-drop lists for modern browsers and touch devices. No jQuery or framework required.
Stars: ✭ 23,641 (+87459.26%)
Mutual labels:  drag-and-drop, drag-drop
Dragula
👌 Drag and drop so simple it hurts
Stars: ✭ 21,011 (+77718.52%)
Mutual labels:  drag-and-drop, drag-drop
Vvvebjs
Drag and drop website builder javascript library.
Stars: ✭ 4,609 (+16970.37%)
Mutual labels:  drag-and-drop, drag-drop
Svgdragtree
一个可以通过拖放 SVG 图标,来生成拥有树状结构的视图与数据的前端组件。 SDT example:
Stars: ✭ 113 (+318.52%)
Mutual labels:  drag-and-drop, drag-drop
The Drag And Drop Component Suite For Delphi
Stars: ✭ 109 (+303.7%)
Mutual labels:  drag-and-drop, drag-drop
Dragact
a dragger layout system with React style .
Stars: ✭ 710 (+2529.63%)
Mutual labels:  drag-and-drop, drag-drop
Drag Drop
HTML5 drag & drop for humans
Stars: ✭ 443 (+1540.74%)
Mutual labels:  drag-and-drop, drag-drop
Silex
Silex is a static website builder in the cloud.
Stars: ✭ 958 (+3448.15%)
Mutual labels:  drag-and-drop, drag-drop
React Smooth Dnd
react wrapper components for smooth-dnd
Stars: ✭ 1,560 (+5677.78%)
Mutual labels:  drag-and-drop, drag-drop
Gong Wpf Dragdrop
The GongSolutions.WPF.DragDrop library is a drag'n'drop framework for WPF
Stars: ✭ 1,669 (+6081.48%)
Mutual labels:  drag-and-drop, drag-drop
Modern-UI-Components-for-VBA
A helper dll for VBA users to design modern UI components. No install required!
Stars: ✭ 139 (+414.81%)
Mutual labels:  drag-and-drop
iOS11-Demos
Collection of samples and demos of features introduced in iOS 11
Stars: ✭ 16 (-40.74%)
Mutual labels:  drag-and-drop
ember-language-server
Language Server Protocol implementation for Ember.js projects
Stars: ✭ 93 (+244.44%)
Mutual labels:  ember-cli
v-drag-drop
Minimalistic drag & drop directives for Vue.js
Stars: ✭ 17 (-37.04%)
Mutual labels:  drag-and-drop
Madara
✍️ A way for people to manage their tasks.
Stars: ✭ 17 (-37.04%)
Mutual labels:  drag-and-drop
Unity-Visual-Behavior-Tree
Reactive Visual Scripting Behavior Tree Tool for Unity 2018.x+
Stars: ✭ 36 (+33.33%)
Mutual labels:  drag-and-drop
qt-tile-layout
A tile layout for PyQt5
Stars: ✭ 18 (-33.33%)
Mutual labels:  drag-and-drop
ember-link-action
Fire an action when LinkTo component transition happens
Stars: ✭ 86 (+218.52%)
Mutual labels:  ember-cli
react-dnd-treeview
A draggable / droppable React-based treeview component. You can use render props to create each node freely.
Stars: ✭ 207 (+666.67%)
Mutual labels:  drag-and-drop
dragulaR
No description or website provided.
Stars: ✭ 62 (+129.63%)
Mutual labels:  drag-and-drop

Build Status

Ember Dragula

An ember-cli addon for using Dragula - A drag and drop library.

How to use

Install

Inside an ember-cli project, run:

ember install ember-dragula

This will install ember-dragula and dragula and wire everything up for you. Now you have two components available: {{ember-dragula}} and {{ember-dragula-container}}.

Example

{{#ember-dragula config=dragulaconfig}}
	{{#ember-dragula-container }}
		<div>drag me</div>
		<div>or me</div>
	{{/ember-dragula-container}}
	{{#ember-dragula-container }}
		<div>you can also drag me</div>
		<div>and me</div>
	{{/ember-dragula-container}}
{{/ember-dragula}}

Dragula will allow the user to drag any direct child element of a {{ember-dragula-container}}. {{ember-dragula}} is the component that manages the lifecycle of the associated drake and should always wrap around your containers in the template.

Passing options

In the above code snippet, the config parameter must be set in the following format on a parent controller/component.

dragulaconfig: {
	options: {
		copy: false,           
		revertOnSpill: false,  
		removeOnSpill: false
		// Other options from the dragula source page.
	},
	enabledEvents: ['drag', 'drop']
}

Using events

You can enable any of the default Dragula events in the config as seen above. When they're enabled, you still need to define corresponding actions on your parent controller/component:

{{#ember-dragula config=dragulaconfig drag='onDrag' drop='onDrop'}}
	{{#ember-dragula-container }}
		<div>drag me</div>
		<div>or me</div>
	{{/ember-dragula-container}}
{{/ember-dragula}}

Advanced usage

If you can not nest the markup directly, you can pass the drake instance down directly:

{{#ember-dragula config=dragulaconfig as |drake|}}
	<div>
		{{#ember-dragula-container drake=drake}}
			<div>drag me</div>
			<div>or me</div>
		{{/ember-dragula-container}}
	</div>
{{/ember-dragula}}

Installation

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit https://ember-cli.com/.

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