Hi,
JavaScript Code need to be excuted after a Restfultable is completely loaded.Following Code doesn´t work, the restfultable is loaded, but there is no alert :/ .
function createRestfulTable(path) { AJS.$("#filter").html(""); //alte tabelle entfernen myRestfulTableInstance = new AJS.RestfulTable({ autoFocus : true, el : jQuery("#filter"), allowEdit : false, allowDelete : false, resources : { all : path, self : path }, columns: [ { id: "x", header: "x" }, { id: "xx", header: "xx" }, { id: "xxx", header: "xxx" } ] }); myRestfulTableInstance.bind(AJS.RestfulTable.Events.INITIALIZED, function () { alert("finished setup"); }); };
It quite looks like the API explains: https://docs.atlassian.com/aui/5.4.0/docs/restfulTable.html
What´s wrong with the Code?
Or are they alternative methodes how i can perfom my code after the Table is loaded ?
Community moderators have prevented the ability to post new answers.
What are you trying to do (i.e. what type of code are you trying to execute afterwards)?
I believe that you'll need to bind the event to the jQuery object of the table. So something like
AJS.$("#filter").html("") AJS.$("#filter).bind(AJS.RestfulTable.Events.INITIALIZED, function () { alert("finished setup"); }); .. do restfultable stuff
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.