trabajando en el editor

This commit is contained in:
2024-12-01 20:44:15 +01:00
parent a1ddc8a520
commit 510e33b5fa
8 changed files with 481 additions and 17 deletions

View File

@ -0,0 +1,32 @@
let TableEditor = function (
table,
url,
headers,
idSrc,
fields) {
this.table = table;
this.url = url;
this.headers = headers;
this.idSrc = idSrc;
this.fields = fields;
this.editor = null;
this.init = function () {
this.editor = new $.fn.dataTable.Editor( {
ajax: {
url: url,
headers: headers,
},
table : table,
idSrc: idSrc,
fields: fields
});
};
}
export default TableEditor;