手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >jtable列中自定义button示例代码
jtable列中自定义button示例代码
摘要:复制代码代码如下:Information:{title:'Info',width:'5%',sorting:false,edit:true,...

复制代码 代码如下:

Information: {

title: 'Info',

width: '5%',

sorting: false,

edit: true,

create: true,

type:'textarea',

display: function (customerData) {

var $img = $('<img src="content/images/document_properties.png" title="View and edit information" />');

$img.click(function () {

$('#CustomersTableContainer').jtable('openChildTable',

$img.closest('tr'),

{

title: customerData.record.Name + ' - Information',

actions: {

listAction: 'ajax/customer_info_actions.php?action=list&searchterm=' + customerData.record.CustomerNumber,

},

fields: {

CustomerNumber: {

title: 'Number',

key: true,

create: false,

edit: false,

list: false

},

Information: {

title:'information',

create: false,

edit: true,

list: true,

type:'textarea'

},

}

}, function (data) { //opened handler

data.childTable.jtable('load');

});

});

return $img;

}

},

'''''

【jtable列中自定义button示例代码】相关文章:

JQuery自动触发事件的方法

些很实用且必用的小脚本代码

用于table内容排序

超酷右下浮出广告窗口代码

jQuery实现div随意拖动的实例代码(通用代码)

jQuery聚合函数实例

将HTML自动转为JS代码

让插入到 innerHTML 中的 script 跑起来的实现代码

Jquery解析json字符串及json数组的方法

光标定位等TextRange的操作的范例代码

精品推荐
分类导航