Tuch / angular-dnd

Drag and Drop module for Super heroic 1.x AngularJS. Not jQueryUI. Touch supporting.
67 stars 25 forks source link

Join the chat at https://gitter.im/Tuch/angular-dnd

Angular-DND 0.1.25

Features:

Directives:

dnd-draggable [expression]

Provides movement ability to the element. Parameter 'false' disables the directive.

dnd-draggable-opts [object] - directive options:

watching attributes:

scope:

dnd-pointer-none

Attribute operates similar to the pointer-events: none - ignoring the event, but in relation to dnd- directives (see Example 2 sortable directive - the text field)

dnd-droppable [expression]

Create targets for draggable elements. Parameter 'false' disables the directive.

dnd-droppable-opts [object]:

watching attributes:

scope:

dnd-rotatable [expression]

Provides rotate ability to the element. Parameter 'false' disables the directive.

watching attributes:

scope:

dnd-resizable [expression]

Provides resize ability to the element. Parameter 'false' disables the directive.

watching attributes:

scope:

dnd-sortable-list [expression]

List of sortable items

dnd-sortable [expression]

Reorder elements in a list or grid.

watching attributes:

dnd-lasso-area [expression]

This Directive is to create rect models with lasso tool. Also, this directive can work with a selectable directive (as a container) (see. Example). Parameter 'false' disables the directive.

watching attributes:

scope:

dnd-selectable [expression]

Use manipulator to select elements, individually or in a group.

Requirements:

watching attributes:

model attributes:

scope:

Sequence of events:

dnd-rect (string)

Model of element rectangle (top, left, width, height, transform). Core directive. Use with dnd-draggable, dnd-resizable, dnd-rotatable, dnd-fittext, dnd-sortable, and also dnd-selectable(optional) work with dnd-rect.

dnd-containment(string, selector)

Containment work area of draggable/resizable/rotatable elements. By default containment is body.

dnd-fittext (mix)

Directive for text fitting under element sizes.

dnd-fittext parameter:

Services:

DndLasso

Service-Class to provide directives interface of the rectangular lasso tool

dndKey

Service for control key pressing

Methods

Examples

Plunkers

TODO:

PS:

Sorry for bad translation. Waiting for your pull requests.

Join the chat at https://gitter.im/Tuch/angular-dnd