Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit d9911be

Browse files
committed
docs(README): add tree with dynamic template example
1 parent 632b631 commit d9911be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Apply the directive to your form elements:
4040
* `ui-sortable` element should only contain one `ng-repeat` and not any other elements (above or below).
4141
Otherwise the index matching of the generated DOM elements and the `ng-model`'s items will break.
4242
**In other words: The items of `ng-model` must match the indexes of the generated DOM elements.**
43-
* `ui-sortable` lists containing many 'types' of items can be implemented by using dynamic template loading [with ng-include](http://stackoverflow.com/questions/14607879/angularjs-load-dynamic-template-html-within-directive/14621927#14621927) or a [loader directive](https://gist.github.com/thgreasi/7152499c0e91973c4820), to determine how each model item should be rendered.
43+
* `ui-sortable` lists containing many 'types' of items can be implemented by using dynamic template loading [with ng-include](http://stackoverflow.com/questions/14607879/angularjs-load-dynamic-template-html-within-directive/14621927#14621927) or a [loader directive](https://gist.github.com/thgreasi/7152499c0e91973c4820), to determine how each model item should be rendered. Also take a look at the [Tree with dynamic template](http://codepen.io/thgreasi/pen/uyHFC) example.
4444

4545
### Options
4646

@@ -136,6 +136,7 @@ For more details about the events check the [jQueryUI API documentation](http://
136136
- [Filtering](http://codepen.io/thgreasi/pen/mzGbq) ([details](https://github.com/angular-ui/ui-sortable/issues/113))
137137
- [Ordering 1](http://codepen.io/thgreasi/pen/iKEHd) & [Ordering 2](http://plnkr.co/edit/XPUzJjdvwE0QWQ6py6mQ?p=preview) ([details](https://github.com/angular-ui/ui-sortable/issues/70))
138138
- [Cloning](http://codepen.io/thgreasi/pen/qmvhG) ([details](https://github.com/angular-ui/ui-sortable/issues/139))
139+
- [Tree with dynamic template](http://codepen.io/thgreasi/pen/uyHFC)
139140

140141
## Reporting Issues
141142

0 commit comments

Comments
 (0)