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: js/angular/directive/collectionRepeat.js
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -109,6 +109,9 @@
109
109
*
110
110
* @param {expression} collection-item-width The width of the repeated element. Can be a number (in pixels) or a percentage.
111
111
* @param {expression} collection-item-height The height of the repeated element. Can be a number (in pixels), or a percentage.
112
+
* @param {number=} collection-buffer-size The number of rows (or columns in a vertical scroll view) to load above and below the visible items. Default 2. This is good to set higher if you have lots of images to preload. Warning: the larger the buffer size, the worse performance will be. After ten or so you will see a difference.
113
+
* @param {boolean=} collection-refresh-images Whether to force images to refresh their `src` when an item's element is recycled. If provided, this stops problems with images still showing their old src when item's elements are recycled.
114
+
* If set to true, this comes with a small performance loss. Default false.
112
115
*
113
116
*/
114
117
varCOLLECTION_REPEAT_SCROLLVIEW_XY_ERROR="Cannot create a collection-repeat within a scrollView that is scrollable on both x and y axis. Choose either x direction or y direction.";
0 commit comments