jtable列中自定义button示例代码

2019-12-24,

复制代码 代码如下:
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;
}
},
'''''

您可能感兴趣的文章:

  • Java Swing中的表格(JTable)和树(JTree)组件使用实例
  • Java Swing实现JTable检测单元格数据变更事件的方法示例
  • Java Swing中JTable渲染器与编辑器用法示例
  • Jtable和JTree的写法示例代码
  • 可视化Swing中JTable控件绑定SQL数据源的两种方法深入解析
  • 解决JTable排序问题的方法详解
  • 基于JTable的列宽与内容自适应的实现方法
  • Java Swing中的文本框(JTextField)与文本区(JTextArea)使用实例
  • Java Swing中的下拉式菜单(menu)、弹出式菜单(JPopupMenu)、选项卡窗体(JTabbedPane)组件使用案例
  • java swing中实现拖拽功能示例
  • Java Swing组件编程之JTable表格用法实例详解

《jtable列中自定义button示例代码.doc》

下载本文的Word格式文档,以方便收藏与打印。