File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,19 @@ angular.module("app").controller("MyCtrl", function () {
39
39
40
40
** Don't forget to specify an id (or an attribute 'scroll-name') for your scroll pane, otherwise it won't be working**
41
41
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
+
42
55
### Reinitialize the pane
43
56
44
57
If you want to reinitialize the pane, you can broadcast ` reinit-pane ` with the ID of the DOM Element.
You can’t perform that action at this time.
0 commit comments