var gridDef =
{
amountPerPage : INT, // (*) rows amount per page
useMultiSort : BOOLEAN, // (*) whether we use multisort
datatype : INT, // 0 - array (default), 1 - csv string,
// 2 - CSV file, 3 - xml file
data : ARRAY == [][] || STRING // (*) data for columns with Image type
// (*) column definitions array
colDef : ARRAY == [
{
title : STRING, // (*) column title
titleClass : "", // (*)
type : STRING, // (*) data type
width : INT, // (*) column width
alignment : STRING, // (*) column alignment
compareFunction : FUNCTION, // (*) compare function
isVisible : BOOLEAN, // (*) whether column is visible
useAutoIndex : BOOLEAN, // (*) auto sort
useAutoFilter : BOOLEAN // (*) auto filter
} ],
rowHandler : FUNCTION
keyCol : INT
// (*) css classes for rows visualization
rowStyle :
{
markClass : "", // (*) marked string
darkClass : "", // (*) dark string
lightClass : "", // (*) light string
hoverClass : "" // (*) active string
},
// (*) images for table
imgSortAsc : { },
imgSortDesc : { },
imgSortAscActive : { },
imgSortDescActive : { },
imgMultiSortAscActive : { },
imgMultiSortDescActive : { },
imgFirstPage : { },
imgLastPage : { },
imgPrevPage : { },
imgNextPage : { }
};
Global variables :
var DATE_FORMAT = "dd.mm.yyyy"; - date format
var EMPTY_ROW = "no filter";
|