XUICarousel()

new XUICarousel()

Methods

AddItem(strLabel, strPic, Uuid, bAdd, bCheckBox)

添加数据
Parameters:
Name Type Description
strLabel String 名称
strPic ImageProp 图片路径
Uuid Number 传入id
bAdd Boolean true为可添加false为不可添加
bCheckBox Boolean true为可多选false为不可多选

GetIdByIndex(nIndex) → {Number}

按索引获取Id
Parameters:
Name Type Description
nIndex Number 索引从0开始
Returns:
Number

GetIndexById(Uuid) → {Number}

根据Id获取索引
Parameters:
Name Type Description
Uuid Number
Returns:
Number

GetLabelByIndex(nIndex) → {String}

按索引获取名称
Parameters:
Name Type Description
nIndex Number 索引从0开始
Returns:
String

GetSelectIndex() → {Number}

选中获取索引
Returns:
Number

GetSelectUuid() → {Number}

选中获取Id
Returns:
Number

IsAddByIndex(nIndex) → {Boolean}

按索引是否为添加
Parameters:
Name Type Description
nIndex Number 索引从0开始
Returns:
Boolean

IsMulChoiceByIndex(nIndex) → {Boolean}

按索引是否为可选
Parameters:
Name Type Description
nIndex Number 索引从0开始
Returns:
Boolean

RemoveAll()

清除所有

RemoveByIndex(nIndex)

按索引删除
Parameters:
Name Type Description
nIndex Number

SetAddByIndex(nIndex, bAdd)

按索引设置为添加
Parameters:
Name Type Description
nIndex Number 索引从0开始
bAdd Boolean true为可添加false为不可添加
Properties:
Name Type Description
bAddByIndex Collection [-1,true]

SetAllAdd(bAdd)

设置所有为可添加
Parameters:
Name Type Description
bAdd Boolean true为可添加false为不可添加

SetAllMulChoice(bCho)

设置所有为多选
Parameters:
Name Type Description
bCho Boolean true为可多选false为不可多选

SetIdByIndex(nIndex, Uuid)

按索引修改Id
Parameters:
Name Type Description
nIndex Number 索引从0开始
Uuid Number

SetItemByIndex(nIndex, strLabel, strPic, Uuid, bAdd, bCheckBox)

按索引修改一项
Parameters:
Name Type Description
nIndex Number 索引从0开始
strLabel String 名称
strPic ImageProp 图片路径
Uuid Number 传入Id
bAdd Boolean true为可添加false为不可添加
bCheckBox Boolean true为可多选false为不可多选

SetLabelByIndex(nIndex, strLabel)

按索设置名称
Parameters:
Name Type Description
nIndex Number 索引从0开始
strLabel String 名称
Properties:
Name Type Description
LabelByIndex Collection [-1,""]

SetMulChoiceByIndex(nIndex, bCho)

按索引设置为可选
Parameters:
Name Type Description
nIndex Number 索引从0开始
bCho Boolean true为可多选false为不可多选
Properties:
Name Type Description
bMulChoiceByIndex Collection [-1,true]

SetMultiSelect(bChoice)

设置开启多选
Parameters:
Name Type Description
bChoice Boolean

SetPicPath(nIndex, strPic)

按索引设置背景图片
Parameters:
Name Type Description
nIndex Number 索引从0开始
strPic ImageProp 图片路径

SetSelectById(Uuid)

根据Id设置选中
Parameters:
Name Type Description
Uuid Number

SetSelectByIndex(nIndex)

K) 按索引设置选中
Parameters:
Name Type Description
nIndex Number 索引从零开始
Properties:
Name Type Description
SelectItemIndex Number 1