Restful Table Events

Axcode December 18, 2013

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

1 vote
HaiPT January 22, 2014

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");
});

0 votes
Holger Schimanski
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 7, 2017

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 () {...}

0 votes
Axcode January 28, 2014

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

Suggest an answer

Log in or Sign up to answer