/**
* This is the global variable when you create the pagehelper instance.
* const pageHelper = new PageHelper();
* @namespace
*/
var pageHelper = {
/**
* The element with special attributes to be used to generate the full url
* like ph-params=""
* @param {HTMLHtmlElement} ele - The html element with special attributes to be used to generate the full url
* @param {string} dataUrl - The url to calculate the full url from
* @instance
*/
fullUrl(ele, dataUrl) {
},
/**
* polling the endpoint with the given interval and fire the event specified
* @param {string} url - The url to be polled
* @param {Object} kvs - the interval to poll the endpoint
* @param {string} kvs.interval - the interval to poll the endpoint
* @param {string} kvs.eventName - the event to be fired when the polling is done
* @param {function} kvs.stopWhen - the function to stop the polling
* @returns {PollingService} - the polling service
* @instance
*/
getPollingService(url, kvs) {
},
/**
* show topbar with the given delay
* @param {number} delay
*/
showTopbar(delay) {},
/**
* hide topbar
*/
hideTopbar() {}
};
/** Polling Service. */
class PollingService {
/**
* Start polling the endpoint
*/
startPolling() {
}
/**
* Stop polling the endpoint
*/
stopPolling() {
}
}