Restful Table Events

Hi,

Why does not the..

myRestfulTableInstance.bind(AJS.RestfulTable.Events.INITIALIZED, function () {
   alert("finished setup");
});

..work? When the table is rendered (which works fine) the event does not trigger. I really need this to work. How can I accomplish it?

3 answers

This widget could not be displayed.

Maybe you haven't use right element myRestfulTableInstance (this happend to me)

In my solution:

var $table = $("#restful-table");
new AJS.RestfulTable({
        el: $table,
        ...
});
$table.bind(AJS.RestfulTable.Events.INITIALIZED, function () {
	alert("ok");
});

This widget could not be displayed.

Thanks, I'll manage to solve my problem without using this event, but thanks anyway!

This widget could not be displayed.

This is described wrong in the AUI documentation. Have a look here https://ecosystem.atlassian.net/browse/AUI-3555. You have to bind to AJS.$(document).bind(AJS.RestfulTable.Events.INITIALIZED, function () {...}

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

69 views 0 1
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you