Skip to content

Commit e769812

Browse files
author
Niels Dequeker
committed
Style
1 parent 2b3ec9d commit e769812

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

README.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ Injecting `ui.tree`, `ui-tree-nodes`, `ui-tree-node`, `ui-tree-handle` to your h
132132

133133
#### Attributes
134134
##### 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).
136138
See the [demo page](http://angular-ui-tree.github.io/angular-ui-tree/#/nodrop) for examples.
137139
- `false` (default): turn off
138140
- `true`: turn on no drop
@@ -178,7 +180,10 @@ Collapse all it's child nodes.
178180
Expand all it's child nodes.
179181

180182
##### $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.
186+
182187
Example:
183188
```js
184189
myAppModule.controller('MyController', function($scope) {
@@ -263,11 +268,15 @@ The `beforeDrop` function is called before the dragging node is dropped.
263268
Same as [Parameters](#eventParam) of dropped.
264269

265270
### 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.
267273

268274
#### Attributes
269275
##### data-nodrop-enabled <a name="nodes_attrs_nodrop"></a>
270-
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.
279+
271280
##### data-max-depth <a name="nodes_attrs_maxDepth"></a>
272281
Number of levels a nodes can be nested (default 0). 0 means no limit. It can override the `data-max-depth` in `ui-tree`.
273282
**Note**
@@ -404,7 +413,8 @@ Check if the current node is a child of the target node.
404413

405414

406415
### 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.
408418

409419
## NgModules Link
410420

@@ -436,7 +446,8 @@ Run the commands below in the project root directory.
436446
## Useful commands
437447

438448
####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.
440451

441452
To start the web server, run:
442453

0 commit comments

Comments
 (0)