A set of dynamic NGObjWeb elements for managing a tableview ...
TODO: needs loads of cleanups ...
WETableView attributes:
list - list to iterate through (NSArray) batchSize - size of a page (unsigned) currentBatch - current page (unsigned) item - current item (id) index - current item index (unsigned) identifier - unique id for element (id) previousItem - previous item // used to calculate groupBy (id) previousIndex - previous item index // used to calculate groupBy (unsigned) indexOfFirst - index of first item of current page (unsigned) indexOfLast - index of last item of current page (unsigend) sortedKey - (NSString) isDescending - sort descending (BOOL) groups - (id) showGroup - (BOOL) collapseOnClient - use JavaScript for collapsing (only IE) (BOOL) scrollOnClient - use JavaScript for scrolling (only IE) (BOOL) autoScroll - use overflow-scrolling (only IE) (int) showBatchResizeButtons - default = YES (BOOL)
WETableHeader attributes:
sortKey - unique key; if set, a sorticon will be displayed (NSString) negateSortDir - if YES, default sort dir is NSDescending (BOOL) bgColor - background color (NSString)
WETableData attributes:
sortKey - unique key; if set, a sorticon will be displayed (NSString) negateSortDir - if YES, default sort dir is NSDescending (BOOL) bgColor - background color (NSString) title - title of header -> no header cell is needed (NSString) isGroup -
WETableView config attributes:
titleColor headerColor footerColor evenColor oddColor fontColor fontFace fontSize nonSortIcon downwardSortIcon upwardSortIcon firstIcon firstBlindIcon previousIcon previousBlindIcon nextIcon nextBlindIcon lastIcon lastBlindIcon plusResizeIcon minusResizeIcon groupOpenedIcon groupClosedIcon ofLabel toLabel firstLabel previousLabel nextLabel lastLabel pageLabel sortLabel border cellpadding cellspacing
WETableHeader, WETableData config attributes:
upwardSortIcon; downwardSortIcon; nonSortIcon; sortLabel;