From 36db21e5bc40060825212255ab9b1117548e49b3 Mon Sep 17 00:00:00 2001 From: Thomas DENEULIN Date: Fri, 21 Aug 2015 10:15:53 +0200 Subject: [PATCH] improve documentation options --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8f72f5b..dd2f4df 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,6 @@ Draggable usage: ``` -* `ng-center-anchor` is optional. If not specified, it defaults to false. * If the draggable is also clickable (ng-click, ng-dblclick) the script wont react. * You can define a drag-button as child with the attribute `ng-drag-handle`. @@ -59,6 +58,16 @@ app.controller('MainCtrl', function ($scope) { }; ``` +## Options + +`ng-center-anchor` : Optional. Default value : `false` +- True : move element on center mouse +- False: move element on the position of the click mouse + +`allow-transform` : Optional. Default value : `true` +- True : use transform css. +- False : use position fixed. Tips for move an item to the top element "overflow:hidden" + ## Examples [`Drag and drop`](http://htmlpreview.github.io/?https://github.com/fatlinesofcode/ngDraggable/blob/master/example.html).