From f47547e7280c4a8efb17b2a0ae91386257bf60ae Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Fri, 28 Oct 2011 17:45:51 +0000 Subject: [PATCH] allow for non-default page length of non-orientation-both icon lists --- source/Ox.UI/js/List/Ox.IconList.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/Ox.UI/js/List/Ox.IconList.js b/source/Ox.UI/js/List/Ox.IconList.js index 28c282c2..55ea2c6b 100644 --- a/source/Ox.UI/js/List/Ox.IconList.js +++ b/source/Ox.UI/js/List/Ox.IconList.js @@ -19,6 +19,7 @@ Ox.IconList IconList Object max maximum selected selected items min minimum of selcted items orientation orientation ("horizontal", "vertical" or "both") + pageLength Number of items per page (if orientation != "both") selected array of selected items size list size sort sort keys @@ -43,6 +44,7 @@ Ox.IconList = function(options, self) { max: -1, min: 0, orientation: 'both', + pageLength: 100, selected: [], size: 128, sort: [], @@ -72,6 +74,7 @@ Ox.IconList = function(options, self) { max: self.options.max, min: self.options.min, orientation: self.options.orientation, + pageLength: self.options.pageLength, selected: self.options.selected, sort: self.options.sort, type: 'icon',