mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
trabajando en el editor
This commit is contained in:
32
httpdocs/assets/js/safekat/components/tableEditor.js
Normal file
32
httpdocs/assets/js/safekat/components/tableEditor.js
Normal 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;
|
||||
|
||||
Reference in New Issue
Block a user