SoFunction
Updated on 2025-03-08

Sample code for custom button in jtable column


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" />');
$(function () {
$('#CustomersTableContainer').jtable('openChildTable',
$('tr'),
{
title: + ' - Information',
actions: {
listAction: 'ajax/customer_info_actions.php?action=list&searchterm=' + ,
},
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
('load');
});
});
return $img;
}
},
'''''