发版
This commit is contained in:
@@ -191,7 +191,7 @@ layui.use('table', function(){
|
||||
,toolbar: '#toolbarDemo'
|
||||
//,defaultToolbar: ['filter']
|
||||
,cols: [[
|
||||
{type: 'radio', fixed: 'left'}
|
||||
{type: 'checkbox', fixed: 'left'}
|
||||
,{field:'id', title:'ID', width:80, fixed: 'left', unresize: true, sort: true, totalRowText: '合计:'}
|
||||
,{field:'username', title:'用户名', hide: true, width:120, edit: 'text', templet: '#usernameTpl'}
|
||||
,{field:'email', title:'邮箱', hide: true, width:150, edit: 'text', templet: function(x){
|
||||
@@ -248,6 +248,13 @@ layui.use('table', function(){
|
||||
break;
|
||||
};
|
||||
});
|
||||
|
||||
table.on('row(test)', function(obj){
|
||||
console.log(obj);
|
||||
//layer.closeAll('tips');
|
||||
});
|
||||
|
||||
|
||||
|
||||
table.render({
|
||||
elem: '#test2'
|
||||
|
||||
Reference in New Issue
Block a user