Skip to content

Commit bdf73ce

Browse files
committed
(fix)Readme style improvement for jqyoui-draggable and jqyoui-droppable options
1 parent 9f24dd1 commit bdf73ce

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -46,34 +46,34 @@ angular.module('myApp', ['ngDragDrop'])
4646

4747
## Angular Draggable options
4848
* **jqyoui-draggable** – A custom angular attribute to make any element draggable. It holds more settings such as:
49-
* **index** – number – $index of an item of a model (if it is an array) associated with it
50-
* **placeholder** – boolean/string – If true, the place will be occupied even though a dragggable is moved/dropped somewhere else. If 'keep' is supplied, the original item won't be removed from the draggable.
51-
* **animate** – boolean – If true, draggable will be animated towards droppable when dropped. If multiple is not set to true on droppable then its draggable will swap its position.
52-
* **onStart** – string – callback method to be invoked (has to be defined in a controller) when dragging starts
53-
* **onStop** – string – callback method to be invoked when dragging stops
54-
* **onDrag** – string – callback method to be invoked while the mouse is moved during the dragging
55-
* **applyFilter** - string - applies AngularJS $filter on the list before swapping items. Only applicable, if ngRepeat has any filter (such as orderBy, limitTo) associated with it.
56-
* **containment** – string - position/offset. Offset by default. This forces to use jQuery.position() or jQuery.offset() to calculate proper position with respect to parent element or document respectively.
57-
* **deepCopy** - boolean (optional) – If true, makes a deep copy of draggable that looses prototypical inheritance.
58-
* **beforeDrop** – promise (optional) – Ask for confirmation before swapping. Works with both window.confirm and custom popup.
59-
* **insertInline** – boolean(optional) – Make a list sortable. Same model is mandatory for draggable and droppable.
60-
* **direction** – string(optional) – Property name that will be created on each scope to manage animation direction.
49+
* **index** – number – $index of an item of a model (if it is an array) associated with it
50+
* **placeholder** – boolean/string – If true, the place will be occupied even though a dragggable is moved/dropped somewhere else. If 'keep' is supplied, the original item won't be removed from the draggable.
51+
* **animate** – boolean – If true, draggable will be animated towards droppable when dropped. If multiple is not set to true on droppable then its draggable will swap its position.
52+
* **onStart** – string – callback method to be invoked (has to be defined in a controller) when dragging starts
53+
* **onStop** – string – callback method to be invoked when dragging stops
54+
* **onDrag** – string – callback method to be invoked while the mouse is moved during the dragging
55+
* **applyFilter** - string - applies AngularJS $filter on the list before swapping items. Only applicable, if ngRepeat has any filter (such as orderBy, limitTo) associated with it.
56+
* **containment** – string - position/offset. Offset by default. This forces to use jQuery.position() or jQuery.offset() to calculate proper position with respect to parent element or document respectively.
57+
* **deepCopy** - boolean (optional) – If true, makes a deep copy of draggable that looses prototypical inheritance.
58+
* **beforeDrop** – promise (optional) – Ask for confirmation before swapping. Works with both window.confirm and custom popup.
59+
* **insertInline** – boolean(optional) – Make a list sortable. Same model is mandatory for draggable and droppable.
60+
* **direction** – string(optional) – Property name that will be created on each scope to manage animation direction.
6161
* **data-drag** – boolean – If true, element can be draggable. Disabled otherwise.
6262
* **data-jqyoui-options** – object – should hold all the valid options supported by [jQueryUI Draggable](http://api.jqueryui.com/draggable)
6363
* **ng-model** – string – An angular model defined in a controller. Should be a JS array or object
6464

6565
## Angular Droppable options
6666
* **jqyoui-droppable** – A custom angular attribute to make any element droppable. It holds more settings such as:
67-
* **index** – number – $index of an item of a model (if it is an array) associated with it
68-
* **multiple** – boolean – Requires to be true only if animate is set to true for draggable and to avoid swapping.
69-
* **stack** – boolean – Requires if animate is set to true on draggable and if multiple draggables positioned one below the other
70-
* **onDrop** – string – callback method to be invoked a draggable is dropped into the droppable
71-
* **onOver** – string – callback method to be invoked when an accepted draggable is dragged over the droppable
72-
* **onOut** – string – callback method to be invoked when an accepted draggable is dragged out of the droppable
73-
* **applyFilter** - string - requires if both droppable as well as draggable share the same ngModel.
74-
* **containment** – string - position/offset. Offset by default. This forces to use jQuery.position() or jQuery.offset() to calculate proper position with respect to parent element or document respectively.
75-
* **deepCopy** – boolean (optional) – If true, makes a deep copy of droppable that looses prototypical inheritance.
76-
* **beforeDrop** – promise (optional) – Ask for confirmation before dropping. Works with both window.confirm and custom popup.
67+
* **index** – number – $index of an item of a model (if it is an array) associated with it
68+
* **multiple** – boolean – Requires to be true only if animate is set to true for draggable and to avoid swapping.
69+
* **stack** – boolean – Requires if animate is set to true on draggable and if multiple draggables positioned one below the other
70+
* **onDrop** – string – callback method to be invoked a draggable is dropped into the droppable
71+
* **onOver** – string – callback method to be invoked when an accepted draggable is dragged over the droppable
72+
* **onOut** – string – callback method to be invoked when an accepted draggable is dragged out of the droppable
73+
* **applyFilter** - string - requires if both droppable as well as draggable share the same ngModel.
74+
* **containment** – string - position/offset. Offset by default. This forces to use jQuery.position() or jQuery.offset() to calculate proper position with respect to parent element or document respectively.
75+
* **deepCopy** – boolean (optional) – If true, makes a deep copy of droppable that looses prototypical inheritance.
76+
* **beforeDrop** – promise (optional) – Ask for confirmation before dropping. Works with both window.confirm and custom popup.
7777
* **data-drop** – boolean – If true, element can be droppable. Disabled otherwise.
7878
* **data-jqyoui-options** – object – should hold all the valid options supported by [jQueryUI Droppable](http://api.jqueryui.com/droppable)
7979
* **ng-model** – string – An angular model defined in a controller. Should be a JS array or object.

0 commit comments

Comments
 (0)