プロジェクトで jtable を使い始めたばかりで、問題が発生しています。jTable インスタンスを作成した後、このインスタンスのいくつかの一般オプションを変更したいのですが、うまくいかないようです。
例えば、
$(document).ready(function () {
$('#PersonTableContainer').jtable({
title: 'Table of people',
actions: {
listAction: '/GettingStarted/PersonList',
createAction: '/GettingStarted/CreatePerson',
updateAction: '/GettingStarted/UpdatePerson',
deleteAction: '/GettingStarted/DeletePerson'
},
fields: {
PersonId: {
key: true,
list: false
},
Name: {
title: 'Author Name',
width: '40%'
},
Age: {
title: 'Age',
width: '20%'
},
RecordDate: {
title: 'Record date',
width: '30%',
type: 'date',
create: false,
edit: false
}
}
});
$('#PersonTableContainer').jtable({ title:'chang title'}); //this doesn't work
// below also doesn't work
$.extend(true, $.hik.jtable.prototype.options, {title: 'change title'} );
});
jtable の一般オプション、フィールド オプション、およびアクションを動的に変更するにはどうすればよいですか?