new XUILabelCarousel()
Methods
-
AppendItem(strName)
-
添加一项
Parameters:
Name Type Description strName
String 项名称 -
ClearAll()
-
清空所有数据
-
DeleteItemByIndex(nIndex)
-
通过序号删除一项
Parameters:
Name Type Description nIndex
Number 项名称 -
GetCheckedName() → {String}
-
获取选中项名称
Returns:
String - 选中区域名称 -
SetBgImage(strImg)
-
背景图片
Parameters:
Name Type Description strImg
ImageProp 图标路径 Properties:
Name Type Description BgImage
ImageProp "" -
SetCheckTextColor(strCheckTextColor)
-
选中文本颜色
Parameters:
Name Type Description strCheckTextColor
String 选中文本的颜色 Properties:
Name Type Description CheckTextColor
Color "0xffffffff" -
SetIconImage(strImg)
-
图标图片
Parameters:
Name Type Description strImg
ImageProp 图标路径 Properties:
Name Type Description IconImage
ImageProp "websiteCase/XUILabelCarousel/images/fwyhsj_quan.png" -
SetIconInfo(nX, nY, nWidth, nHeight)
-
图标位置和宽高
Parameters:
Name Type Description nX
Number 距离左距离 nY
Number 距离上距离 nWidth
Number 距离左距离 nHeight
Number 距离左距离 Properties:
Name Type Description IconInfo
Collection [29,100,210,57] -
SetItemArrData(itemArr)
-
模板数据
Parameters:
Name Type Description itemArr
Array 项数组 -
SetItemNameByIndex(nIndex, strName)
-
通过序号修改文本
Parameters:
Name Type Description nIndex
Number 项名称 strName
String 项名称 -
SetReadyTextColor(strReadyTextColor)
-
备选文本颜色
Parameters:
Name Type Description strReadyTextColor
String 备选文本的颜色 Properties:
Name Type Description ReadyTextColor
Color "0xff8394c1" -
SetRingColor(circleColor, borderColor)
-
选中图标颜色
Parameters:
Name Type Description circleColor
String 圆环颜色 borderColor
String 边框颜色 Properties:
Name Type Description RingColor
Collection ["0xff4582ff","0xfff9f9fa"] -
SetRNormalTextColor(strNormalTextColor)
-
后部文本颜色
Parameters:
Name Type Description strNormalTextColor
String 后部文本的颜色 Properties:
Name Type Description RNormalTextColor
Color "0xff38435f" -
SetTextIconColor(strIconColor)
-
文字下图标颜色
Parameters:
Name Type Description strIconColor
String 图标的颜色 Properties:
Name Type Description TextIconColor
Color "0xff556284" -
SetTextSize(nTextSize)
-
文本大小
Parameters:
Name Type Description nTextSize
Number TextSize Properties:
Name Type Description TextSize
Number 20