WIP with TypeScript

This commit is contained in:
Ralf Becker
2020-01-21 10:12:39 +01:00
parent 0a66978fcd
commit 68f9d4c0cf
13 changed files with 5388 additions and 2832 deletions

View File

@ -201,6 +201,28 @@ var AppJS = (function(){ "use strict"; return Class.extend(
},
/**
* Push method receives push notification about updates to entries from the application
*
* It can use the extra _data parameter to determine if the client has read access to
* the entry - if an update of the list is necessary.
*
* @param {string} _type either 'update', 'edit', 'delete', 'add' or null
* - update: request just modified data from given rows. Sorting is not considered,
* so if the sort field is changed, the row will not be moved.
* - edit: rows changed, but sorting may be affected. Requires full reload.
* - delete: just delete the given rows clientside (no server interaction neccessary)
* - add: requires full reload for proper sorting
* @param {string} _app application name
* @param {(string|number)} _id id of entry to refresh or null
* @param {mixed} _data eg. owner or responsible to decide if update is necessary
* @returns {undefined}
*/
push: function(_type, _app, _id, _data)
{
},
/**
* Open an entry.
*

View File

@ -10,6 +10,7 @@ declare var egw : any;
declare var app : {classes: any};
declare var egw_globalObjectManager : any;
declare var framework : any;
declare var egw_LAB : any;
declare var mailvelope : any;