控制 YUI 数据表记录 ID
我在 YUI 中有一个 DataTable
,我希望记录 ID 来自我的数据而不是 yui-rec1
...
我该怎么做?
I have a DataTable
in YUI and I want to have the record ID be from my data instead of yui-rec1
...
How do I do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它是一个名为 _sId 的私有属性,用于存储记录 ID。它遵循这种模式
抱歉,但 recordSet API 不允许您修改记录 id。
It is a private property called _sId which store record id. It follows this pattern
Sorry but recordSet API does not allow you to modify record id.
我认为您可以使用
dataTAble.getRecord
方法http ://developer.yahoo.com/yui/docs/YAHOO.widget.DataTable.html
或者您还需要其他东西?
I think you can use
dataTAble.getRecord
methodhttp://developer.yahoo.com/yui/docs/YAHOO.widget.DataTable.html
Or you need something else?