new XUISortTable()
Methods
-
AddColumn(strText, nWidth, bSort, arrData)
-
增加列
Parameters:
Name Type Description strText
String 标题 nWidth
Number 宽 bSort
Boolean 是否排序 arrData
Array 数据 -
AddRow(arrData)
-
加入行
Parameters:
Name Type Description arrData
Array -
Clear()
-
清空
-
ClearDataArea()
-
清空数据区
-
DelColumnByIndex(nIndex)
-
删除列
Parameters:
Name Type Description nIndex
Number 索引 -
DelRowByIndex(nIndex)
-
删除行
Parameters:
Name Type Description nIndex
Number 索引 -
GetArrowsColor() → {Array}
-
获取箭头颜色
Returns:
Array -
GetBgColor() → {String}
-
获取背景颜色
Returns:
String -
GetBgImg() → {String}
-
获取背景图
Returns:
String -
GetBgImgRepeat() → {String}
-
获取背景图绘制模式
Returns:
String -
GetBorderColor() → {String}
-
获取边框颜色
Returns:
String -
GetChunkColor() → {String}
-
获得滑块颜色
Returns:
String -
GetChunkRadius() → {Number}
-
获得滑块圆角
Returns:
Number -
GetColumnsCount() → {Number}
-
获取列的数量
Returns:
Number -
GetColumnSort() → {Array}
-
获取可排序列
Returns:
Array -
GetColumnTextColorByIndex(nIndex) → {String}
-
获取单列文字颜色
Parameters:
Name Type Description nIndex
Number 索引 Returns:
String -
GetColumnTextSizeByIndex(nIndex) → {Number}
-
获取单列文字大小
Parameters:
Name Type Description nIndex
Number 索引 Returns:
Number -
GetColumnWidthByIndex(nIndex)
-
获取单列宽度
Parameters:
Name Type Description nIndex
Number 索引 -
GetDataAeraHeight() → {Number}
-
获得数据区行高
Returns:
Number -
GetDataByIndex(nIndexX, nIndexY) → {String}
-
获取单个数据
Parameters:
Name Type Description nIndexX
Number nIndexY
Number Returns:
String -
GetHearderBgColor() → {String}
-
获取标题行背景色
Returns:
String -
GetHearderColumnsWidth() → {Array}
-
获得标题行列宽
Returns:
Array -
GetHearderContent() → {Array}
-
获得标题行内容
Returns:
Array -
GetHearderHeight() → {Number}
-
获取标题行高
Returns:
Number -
GetHearderTextColor() → {String}
-
获取标题行文字颜色
Returns:
String -
GetHearderTextSize() → {Number}
-
获取标题行文字大小
Returns:
Number -
GetHearderTitle() → {Array}
-
获得所有标题
Returns:
Array -
GetRowBgColorByIndex(nIndex) → {String}
-
获取某行背景颜色
Parameters:
Name Type Description nIndex
Number Returns:
String -
GetRowData(nIndex) → {Array}
-
获得单行数据
Parameters:
Name Type Description nIndex
Number Returns:
Array -
GetRowsBgColor() → {Array}
-
获取背景行颜色
Returns:
Array -
GetRowsTextColor() → {String}
-
获取所有行文字颜色
Returns:
String -
GetRowsTextSize() → {Number}
-
获取所有行文字大小
Returns:
Number -
GetRowTextColorByIndex(nIndex) → {String}
-
获取单行文字颜色
Parameters:
Name Type Description nIndex
Number 索引 Returns:
String -
GetRowTextSizeByIndex(nIndex) → {Number}
-
获取单行文字大小
Parameters:
Name Type Description nIndex
Number 索引 Returns:
Number -
GetScrollBarBgColor() → {String}
-
获得滚动条背景色
Returns:
String -
GetScrollBarContainerWidth() → {Number}
-
获得滚动条容器宽度
Returns:
Number -
GetScrollBarWidth() → {Number}
-
获得滚动条宽度
Returns:
Number -
InsertColumn(nIndex, strText, nWidth, bSort, arrData)
-
插入列
Parameters:
Name Type Description nIndex
Number 索引 strText
String 标题 nWidth
Number 宽 bSort
Boolean 是否排序 arrData
Array 数据 -
InsertRows(nIndex, arrData)
-
插入行
Parameters:
Name Type Description nIndex
Number 索引 arrData
Array 数据 -
IsDrawBgColor() → {Boolean}
-
获取是否绘制图标背景色
Returns:
Boolean -
SetArrowsColor(strNoSort, strSort)
-
箭头颜色
Parameters:
Name Type Description strNoSort
String strSort
String Properties:
Name Type Description ArrowsColor
Collection ["0xff283e75","0xff43bafe"] -
SetBgColor(strColor)
-
背景颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description BgColor
Color "0x00000000" -
SetBgImg(strImg)
-
背景图
Parameters:
Name Type Description strImg
ImageProp 图片 Properties:
Name Type Description BgImg
ImageProp "" -
SetBgImgRepeat(strMode)
-
背景图绘制模式
Parameters:
Name Type Description strMode
String 图片 Properties:
Name Type Description BgImgRepeat
Combo ["repeat","no-repeat","repeat-x","repeat-y"] -
SetBorderColor(strColor)
-
边框颜色
Parameters:
Name Type Description strColor
String 颜色 -
SetChunkColor(strColor)
-
滑块颜色
Parameters:
Name Type Description strColor
String 滑块颜色 Properties:
Name Type Description ChunkColor
Color "0xff1B4675" -
SetChunkRadius(nRadius)
-
滑块圆角
Parameters:
Name Type Description nRadius
Number 滑块圆角 Properties:
Name Type Description ChunkRadius
Number 10 -
SetColumnsCount(nCount)
-
列的数量
Parameters:
Name Type Description nCount
Number 列的数量 -
SetColumnSort(nIndex)
-
设置可排序列
Parameters:
Name Type Description nIndex
Number -
SetColumnTextColorByIndex(nIndex, strColor)
-
单列文字颜色
Parameters:
Name Type Description nIndex
Number 索引 strColor
String 颜色 -
SetColumnTextSizeByIndex(nIndex, nSize)
-
单列文字大小
Parameters:
Name Type Description nIndex
Number 索引 nSize
Number 大小 -
SetColumnWidthByIndex(nIndex, nWidth)
-
单列宽度
Parameters:
Name Type Description nIndex
Number 索引 nWidth
Number 宽度 -
SetDataAeraHeight(nHeight)
-
数据区行高
Parameters:
Name Type Description nHeight
Number -
SetDataByIndex(nIndexX, nIndexY, strData)
-
单个数据
Parameters:
Name Type Description nIndexX
Number nIndexY
Number strData
String -
SetDrawBgColor(bDraw)
-
是否绘制背景色
Parameters:
Name Type Description bDraw
Boolean true背景色,false背景图 Properties:
Name Type Description DrawBgColor
Boolean true -
SetHearderBgColor(strColor)
-
标题行背景色
Parameters:
Name Type Description strColor
String 颜色 -
SetHearderColumnsWidth(arrWidth)
-
标题行列宽
Parameters:
Name Type Description arrWidth
Array -
SetHearderContent(arrData)
-
标题行内容
Parameters:
Name Type Description arrData
Array -
SetHearderHeight(nHeight)
-
标题行高
Parameters:
Name Type Description nHeight
Number 行高 -
SetHearderTextColor(strColor)
-
标题行文字颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description HearderTextColor
Color "0xffffffff" -
SetHearderTextSize(nSize)
-
标题行文字大小
Parameters:
Name Type Description nSize
Number 大小 Properties:
Name Type Description HearderTextSize
Number 14 -
SetHearderTitle(arrData)
-
所有标题
Parameters:
Name Type Description arrData
Array 数据 -
SetHearderTitleByIndex(nIndex, strTit)
-
单个标题
Parameters:
Name Type Description nIndex
Number 索引 strTit
String 标题 -
SetRowData(nIndex, arrData)
-
单行数据
Parameters:
Name Type Description nIndex
Number arrData
Array -
SetRowsBgColor(arrColor)
-
背景行颜色
Parameters:
Name Type Description arrColor
Array Properties:
Name Type Description RowsBgColor
Array ["0xff002729","0xff002729"] -
SetRowsTextColor(strColor)
-
所有行文字颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description RowsTextColor
Color "0xff000000" -
SetRowsTextSize(nSize)
-
所有行文字大小
Parameters:
Name Type Description nSize
Number 颜色 Properties:
Name Type Description RowsTextSize
Number 14 -
SetRowTextColorByIndex(nIndex, strColor)
-
单行文字颜色
Parameters:
Name Type Description nIndex
Number 索引 strColor
String 颜色 -
SetRowTextSizeByIndex(nIndex, nSize)
-
单行文字大小
Parameters:
Name Type Description nIndex
Number 索引 nSize
Number 大小 -
SetScrollBarBgColor(strColor)
-
滚动条背景色
Parameters:
Name Type Description strColor
String 背景色 Properties:
Name Type Description ScrollBarBgColor
Color "0x00000000" -
SetScrollBarContainerWidth(nWidth)
-
滚动条容器宽度
Parameters:
Name Type Description nWidth
Number 滚动条容器宽度 -
SetScrollBarWidth(nWidth)
-
滚动条宽度
Parameters:
Name Type Description nWidth
Number 宽度 -
SortPositive(nIndex)
-
正向排序
Parameters:
Name Type Description nIndex
Number -
SortReversed(nIndex)
-
逆向排序
Parameters:
Name Type Description nIndex
Number