在行上单击根据该行中单元格的内容禁用/启用按钮
我目前正在使用 flexigrid.js 插件,并且有一个按钮,我希望根据当前所选行中的某个单元格是否等于某个值来启用/禁用该按钮。
这是我目前所在的位置: 我想将以下内容添加到回调函数列表中,但我不知道在 if 语句中放入什么(如果这甚至是有效的检查)。
'onRowClick': function(row,grid){
var content = $(row).attr('content');
if ($content == 'target'){
}
虽然此回调函数未注册,但 'onDblClick':function...
确实有效。
I'm currently using the flexigrid.js plugin and there is a button that I wish to enable/disable depending on whether a certain cell in the currently selected row is equal to a certain value.
Here is where I am currently at:
I thought to add the following to the list of callback functions but am stuck as to what to put in the if statement if that is even a valid check.
'onRowClick': function(row,grid){
var content = $(row).attr('content');
if ($content == 'target'){
}
This callback function does not register though, the 'onDblClick':function...
does work however.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我收到了来自 Flexigrid for jQuery google 小组将其复制到此处以供参考
I received an answer from Marc Borgers from the Flexigrid for jQuery google group copied it here for reference