易于记录并捕获扩展行事件 [英] Footable and capturing the expand row event
问题描述
我已经在此寻求任何合理的帮助,并且我会再次提出相同的意见.即不是很好的文档.
I have searched for any reasonable help on this and I keep coming back to the same comments. Namely not very good documentation.
我将要使用jquery插件fooTable,它将正常的html表转换为漂亮且可用的东西.
I am about to use the jquery plugin fooTable which converts a normal html table to something pretty and usable.
将表格放在页面上后,使用以下命令很容易.
It is easy to use with the following command after you have put your table on the page.
$('.footable').footable();
但是我想在扩展行时捕获事件.
However I want to capture the event when a row is expanded.
这是正在使用的表的示例.我实际上正在使用Inspinia框架.
Here is an example of the table in action. I am actually using the Inspinia framework.
http://wrapbootstrap.com/preview/WB0R5L90S
您需要点击左侧的表格/底部菜单链接.
You need to click on the tables / footables menu link on the left hand side.
我不确定这是我应该知道的fooTable问题/事件,还是这是关于使用适用于许多事物的jquery捕获事件的常识.
I am not sure if this is fooTable issue/event that I should know or if this is general knowledge about capturing events using jquery that applies to lots of things.
我的jquery语言技能才几个月,因为我是一位长期学习VB的MSSQL程序员,正在学习新知识.
My jquery language skills are only a few months old as I am a long time VB, MSSQL programmer who is learning something new.
感谢任何能为新手提供照明的人!
Thanks to anyone who is kind enough to offer any light to a newbie!
尼尔
推荐答案
您可以将函数绑定到某些适用的事件:
You can bind functions to certain footable events:
$('.footable').footable().bind({
'footable_row_collapsed' : function(e) {
//Your code when a row is collapsed
},
'footable_row_expanded' : function(e) {
//Your code when a row is expanded
},
});
以下是有关footable事件拦截的文档( http://fooplugins.com /footable/demos/event-interception.htm#docs ).
Here is the documentation about footable events interception (http://fooplugins.com/footable/demos/event-interception.htm#docs).
以下是适用事件的列表( http://fooplugins.com/footable/demos/events.htm#docs ).
Here is the list of footable events (http://fooplugins.com/footable/demos/events.htm#docs).
这篇关于易于记录并捕获扩展行事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!