Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
...
Used to creates a popup dialog element.
Parameters
...
Code Block | ||
---|---|---|
| ||
var params = { id : "1", name : "test" }; JPopup.show(frameId"testPopup", url"http://www.joget.org", params); |
...
Description
Used by system to align the popup dialog to the center of the screen.
Parameters
Sample code
Code Block | ||
---|---|---|
| ||
UI.adjustPopUpDialog(JPopup.dialogboxes["testPopup"]); |
Description
Used to escapes HTML syntax in a value
Parameters
Sample code
Code Block | ||
---|---|---|
| ||
var content = "<p>test content</p>";
var escapedContent = UI.escapeHTML(content);
console.log(escapedContent); // <p>test content</p> |
Description
Used by the system to calculate the height of a popup dialog for current screen size to support mobile device.
Parameters
Sample code
Code Block | ||
---|---|---|
| ||
var height = UI.getPopUpHeight("500px"); |
Description
Used by the system to calculate the width of a popup dialog for current screen size to support mobile device.
Parameters
Sample code
Code Block | ||
---|---|---|
| ||
var width = UI.getPopUpWidth("800px"); |
Description
Used by system to gets the query parameters string that contains the meta of current userview theme in used.
Sample code
Code Block | ||
---|---|---|
| ||
var url = "http://localhost/jw/form/embed?" + UI.userviewThemeParams(); |
Description
Used to generate a query string based on a parameters object
Parameters
Sample code
Code Block | ||
---|---|---|
| ||
var params = {
"name" : ["joget"],
"email" : ["info@joget.org", "test@joget.org"]
};
var queryString = UrlUtil.constructUrlQueryString(params);
console.log(queryString); // name=joget&email=info%40joget%2Eorg&email=test%40joget%2Eorg |
Description
Used to encodes the URL parameters in a URL.
Parameters
Sample code
Code Block | ||
---|---|---|
| ||
var url = "http://localhost/jw/test?name=joget&email=info@jogte.org&email=test@joget.org";
var encodedUrl = UrlUtil.encodeUrlParam(url);
console.log(encodedUrl); // http://localhost/jw/test?name=joget&email=info%40joget%2Eorg&email=test%40joget%2Eorg |
Description
Used to gets an object contains all parameter as attribute name and its value in an URL.
Parameters
Sample code
Code Block | ||
---|---|---|
| ||
var url = "http://localhost/jw/test?name=joget&email=info@jogte.org&email=test@joget.org";
var params = UrlUtil.getUrlParams(url);
console.log(params); // {"name" : ["joget"], "email" : ["info@joget.org", "test@joget.org"]} |
Description
Used to merge 2 URL query parameters strings into one query string.
Parameters
Sample code
Code Block | ||
---|---|---|
| ||
var q1 = "name=joget&email=info@jogte.org&email=test@joget.org";
var q2 = "name=joget team&phone=012345678";
var queryString = UrlUtil.mergeRequestQueryString(q1, q2);
console.log(queryString); // name=joget%20team&email=info%40joget%2Eorg&email=test%40joget%2Eorg&phone=012345678 |