你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
发现
话题
全文搜索
登录
[]JS中List容器里renderHandler和itemHandler渲染器如何使用
JS中List容器里renderHandler和itemHandler渲染器如何使用
没有找到相关结果
已邀请:
与内容相关的链接
提交
1 个回复
cry_11858
赞同来自:
this.list_xxx.renderHandler = this.list_bag.renderHandler || new Laya.Handler(this, this.updateList);
ActivityXXXXXUI.prototype.updateList = function(cell, index)
{
var info = cell.dataSource;
var img_icon = cell.getChildByName("img_icon");//图标
var lab_name = cell.getChildByName("lab_name");//名称
}
itemHandler一般不用。
要回复问题请先
登录
发起人
xuexiaorui
相关问题
请问2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗?
LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16)
Layabox 2.0 bate5 运行编译之后 bundle.js 文件里面没有使用命名空间类文件的定义!导致运行时 找不到类的定义!这是为什么? 已上传 Demo 附件
TS项目使用matter.js库无智能提示
sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale
有什么容器能够实现当子元素达到显示上限后自动滚屏,使得新添加的元素始终保持在最底部显示?
微信小游戏如何使用ttf字体?
Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined?
List 组件列表渲染异常
LayaAirIDE下如何使用mask?
使用3D时候,Property 'getComponentByType' does not exist on type 'Node'.
问题状态
最新活动:
2017-08-08 10:01
浏览:
1868
关注:
2
人
商务合作
1 个回复
cry_11858
赞同来自:
ActivityXXXXXUI.prototype.updateList = function(cell, index)
{
var info = cell.dataSource;
var img_icon = cell.getChildByName("img_icon");//图标
var lab_name = cell.getChildByName("lab_name");//名称
}
itemHandler一般不用。