XUITooltipTable()

Methods

GetRowBgColor(nIndex) → {String}

获取行背景色
Parameters:
Name Type Description
nIndex Number 行的index
Returns:
String

IsRowVisible(nIndex) → {Boolean}

行是否显示
Parameters:
Name Type Description
nIndex Number 行的下标
Returns:
Boolean

ScientificNotationFormat(bScientificNotation, nNum)

科学计数法显示
Parameters:
Name Type Description
bScientificNotation Boolean 是否是科学计数法
nNum Number 精度

SetBgColor(strColor)

背景颜色
Parameters:
Name Type Description
strColor String 背景颜色
Properties:
Name Type Description
BgColor Color "0xffff0000"

SetBgImage(strImage)

背景图片
Parameters:
Name Type Description
strImage ImageProp
Properties:
Name Type Description
BgImage ImageProp ""

SetBottomBorder(nWidth, strType, strColor)

下边框
Parameters:
Name Type Description
nWidth Number 宽度
strType String 类型
strColor String 颜色
Properties:
Name Type Description
BottomBorder Collection [1,"solid","0x4d9cdcfe"]

SetColumnColorByIndex(nIndex, strColor)

某一列颜色
Parameters:
Name Type Description
nIndex Number 索引
strColor String 颜色

SetColumnPadding(nPad)

列的内边距
Parameters:
Name Type Description
nPad Number 边距
Properties:
Name Type Description
ColumnPadding Number 10

SetColumnsAndRows(arrColumn, arrRow)

行数和列数
Parameters:
Name Type Description
arrColumn Array
arrRow Array

SetDataColor(strColor)

数据的文字颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
DataColor Color "0xff92b0b3"

SetDatas(nRowIndex, nColumnIndex, arrData)

某行设置数据,适用一行对应一组数据的情况
Parameters:
Name Type Description
nRowIndex Number 行下标
nColumnIndex Number 列下标
arrData Array 数据数组

SetDataSize(nSize)

所有文字大小
Parameters:
Name Type Description
nSize Number 大小
Properties:
Name Type Description
DataSize Number 16

SetDrawColor(bDrawColor)

使用颜色绘制
Parameters:
Name Type Description
bDrawColor Boolean 使用颜色绘制
Properties:
Name Type Description
DrawColor Boolean true

SetFirstCellColor(strColor)

第一个单元格颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
FirstCellColor Color "0xffffffff"

SetFirstColumnColor(strColor)

第一列颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
FirstColumnColor Color "0xff1cd1b9"

SetHeaderBgColor(strColor, bShowBorder, strBorderColor)

标题背景色
Parameters:
Name Type Description
strColor String 背景色
bShowBorder Boolean 显示边框
strBorderColor String 边框色

SetHearderColor(strColor)

表头行文字颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
HearderColor Color "0xffffffff"

SetLeftBorder(nWidth, strType, strColor)

左边框
Parameters:
Name Type Description
nWidth Number 宽度
strType String 类型
strColor String 颜色
Properties:
Name Type Description
LeftBorder Collection [1,"solid","0xff9cdcfe"]

SetPerRowDataCount(nCount)

设置数据个数
Parameters:
Name Type Description
nCount Number 数据个数

SetRadius(nRadius)

圆角
Parameters:
Name Type Description
nRadius Number 半径
Properties:
Name Type Description
Radius Number 5

SetRightBorder(nWidth, strType, strColor)

右边框
Parameters:
Name Type Description
nWidth Number 宽度
strType String 类型
strColor String 颜色
Properties:
Name Type Description
RightBorder Collection [1,"solid","0xff9cdcfe"]

SetRowBgColor(arrBgColor, bShowBorder, strBorderColor)

行背景色
Parameters:
Name Type Description
arrBgColor Array 背景色
bShowBorder Boolean 显示边框
strBorderColor String 边框色

SetTitleData(arrTitle)

标题
Parameters:
Name Type Description
arrTitle Array 标题

SetTopBorder(nWidth, strType, strColor)

上边框
Parameters:
Name Type Description
nWidth Number 宽度
strType String 类型
strColor String 颜色
Properties:
Name Type Description
TopBorder Collection [1,"solid","0x4d9cdcfe"]

ShowData(strElement, nDataIndex)

加入数据
Parameters:
Name Type Description
strElement String tooltip根元素标签id
nDataIndex Number 下标

ShowRow(nRowIndex, bShow)

设置行显示隐藏
Parameters:
Name Type Description
nRowIndex Number 行的下标
bShow Boolean 是否显示