代码如下:
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;
}
},
'''''
如对本文有疑问, 点击进行留言回复!!
2020-07-21 html5如何监听veido的全屏 + css的字体间距 + JS的window.open() + 软技能svn与git
html+css+js适合前端小白的实战全解(超详细)——2048小游戏(二)
在使用@angular/cli创建的angular项目上添加postcss等一系列移动端自适应插件
网友评论