You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-6Lines changed: 17 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -132,7 +132,9 @@ Injecting `ui.tree`, `ui-tree-nodes`, `ui-tree-node`, `ui-tree-handle` to your h
132
132
133
133
#### Attributes
134
134
##### data-nodrop-enabled
135
-
Prevent dropping of nodes into this tree. This applies to both nodes dragged within this tree and nodes from a connected tree. Adding this attribute to the `ui-tree` effectively makes the tree a drag source only. To prevent a particular node from accepting children, add the attribute to the `ui-tree-nodes` element instead (see below).
135
+
Prevent dropping of nodes into this tree. This applies to both nodes dragged within this tree and nodes from a connected tree.
136
+
Adding this attribute to the `ui-tree` effectively makes the tree a drag source only.
137
+
To prevent a particular node from accepting children, add the attribute to the `ui-tree-nodes` element instead (see below).
136
138
See the [demo page](http://angular-ui-tree.github.io/angular-ui-tree/#/nodrop) for examples.
137
139
-`false` (default): turn off
138
140
-`true`: turn on no drop
@@ -178,7 +180,10 @@ Collapse all it's child nodes.
178
180
Expand all it's child nodes.
179
181
180
182
##### $callbacks (type: Object)
181
-
`$callbacks` is a very important property for `angular-ui-tree`. When some special events trigger, the functions in `$callbacks` are called. The callbacks can be passed through the directive.
183
+
`$callbacks` is a very important property for `angular-ui-tree`.
184
+
When some special events trigger, the functions in `$callbacks` are called.
185
+
The callbacks can be passed through the directive.
@@ -263,11 +268,15 @@ The `beforeDrop` function is called before the dragging node is dropped.
263
268
Same as [Parameters](#eventParam) of dropped.
264
269
265
270
### ui-tree-nodes
266
-
`ui-tree-nodes` is the container of nodes. Every `ui-tree-node` should have a `ui-tree-nodes` as it's container, a `ui-tree-nodes` can have multiple child nodes.
271
+
`ui-tree-nodes` is the container of nodes.
272
+
Every `ui-tree-node` should have a `ui-tree-nodes` as it's container, a `ui-tree-nodes` can have multiple child nodes.
Prevent nodes from being dropped into this node container. This prevents nodes from being dropped directly into the container with the attribute but not into children that contain additional containers. See the [demo page](http://angular-ui-tree.github.io/angular-ui-tree/#/nodrop) for examples.
276
+
Prevent nodes from being dropped into this node container.
277
+
This prevents nodes from being dropped directly into the container with the attribute but not into children that contain additional containers.
278
+
See the [demo page](http://angular-ui-tree.github.io/angular-ui-tree/#/nodrop) for examples.
Number of levels a nodes can be nested (default 0). 0 means no limit. It can override the `data-max-depth` in `ui-tree`.
273
282
**Note**
@@ -404,7 +413,8 @@ Check if the current node is a child of the target node.
404
413
405
414
406
415
### ui-tree-handle
407
-
Use the `ui-tree-handle` to specify an element used to drag the object. If you don't add a `ui-tree-handle` for a node, the entire node can be dragged.
416
+
Use the `ui-tree-handle` to specify an element used to drag the object.
417
+
If you don't add a `ui-tree-handle` for a node, the entire node can be dragged.
408
418
409
419
## NgModules Link
410
420
@@ -436,7 +446,8 @@ Run the commands below in the project root directory.
436
446
## Useful commands
437
447
438
448
####Running a Local Development Web Server
439
-
To debug code and run end-to-end tests, it is often useful to have a local HTTP server. For this purpose, we have made available a local web server based on Node.js.
449
+
To debug code and run end-to-end tests, it is often useful to have a local HTTP server.
450
+
For this purpose, we have made available a local web server based on Node.js.
0 commit comments