Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Public JavaScript methods

The public JavaScript events are placed on the RefinedWiki API namespace: RWA.

This is divided into sub-namespaces depending on functionality. The available namespaces 

RWA.Category 

RWA.Page

Events

Refined for Confluence provides various js events you can listen to. These are trigger on the AJS namespace and you can bind on them in the following way:


AJS.bind('rw-categories:category-opened', function(e, $el, category){

  // A collapsed category was just opened. Check if we should append our cool feature ...

});

Below you find a list of events available. You hook in on them using the same syntax as above.

rw-categories events


 

rw-page events

 






  • No labels