随笔分类 -  YUI

摘要:采用formatterYAHOO.widget.DataTable.Formatter.changeLight=function(elCell, oRecord, oColumn, oData){ elCell.innerHTML = "";};{key:"ONLINESTATUS", l... 阅读全文
posted @ 2014-05-19 14:22 wishyouhappy 阅读(409) 评论(0) 推荐(0)
摘要:使用render可以重新渲染datatable,之前添加的样式等信息也想相应会初始化,另外行定位等也会失效使用updateRows方法不会删除样式等信息更新datasource中_oData数据var records = myTable.getRecordSet().getRecords();var... 阅读全文
posted @ 2014-05-19 13:52 wishyouhappy 阅读(643) 评论(0) 推荐(0)
摘要:相关函数getRecord :YAHOO.widget.Record getRecord ( row )For the given identifier, returns the associated Record instance.传入RecordSet position Index或者Recod... 阅读全文
posted @ 2014-05-19 10:31 wishyouhappy 阅读(380) 评论(0) 推荐(0)
摘要:1.namespace用于创建一个全局的命名空间,使用YUI时,首先会自动创建widget,util,example三个命名空间,使用时也可以自定义命名空间。类似于在程序中建了了一个static变量。eg:YAHOO.namespace("example.calendar");2.高亮显示行,cel... 阅读全文
posted @ 2014-05-14 16:21 wishyouhappy 阅读(2945) 评论(0) 推荐(1)