I want to give an alert to the user if the loading error occurs to restfulTable. I code as the document told. But It doesn't work. Thanks a lot.
Below is the code:
new AJS.RestfulTable({
el: jQuery("#project-table"),
resources: {
all: almPluginContext.almAdminBaseUrl + "projects"
},
columns: [
{id: "serverName", header: "Server Name"},
{id: "jiraProject", header: "Jira Project"},
],
noEntriesMsg: "No entity mapping is defined.",
loadingMsg: "Loading ..."
});
AJS.$(document).bind(AJS.RestfulTable.Events.SERVER_ERROR, function () {
alert("server error!");