Skip to content

Commit 19bd1ed

Browse files
committed
9d743fc1b5b1f82c35d41c65645ca9e5e36b86.
2 parents 5e9d743 + be9c81f commit 19bd1ed

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,19 @@ angular.module("app").controller("MyCtrl", function () {
3939

4040
**Don't forget to specify an id (or an attribute 'scroll-name') for your scroll pane, otherwise it won't be working**
4141

42+
### Always scroll to top
43+
44+
If need just specify atribute scroll-always-top. For example, good thing for custom autocomplete list.
45+
46+
```
47+
<input type="text" ng-model="item" />
48+
<div scroll-pane scroll-config="paneConfig" id="myScrollPane" scroll-always-top="{{item}}">
49+
<div ng-repeat="item in items track by $index">
50+
<span>{{item}}</span>
51+
</div>
52+
</div>
53+
```
54+
4255
### Reinitialize the pane
4356

4457
If you want to reinitialize the pane, you can broadcast `reinit-pane` with the ID of the DOM Element.

0 commit comments

Comments
 (0)