Public JavaScript methods
The public JavaScript events are placed on the RefinedWiki API namespace: RWA. This is divided into sub-namespaces based on functionality.
RWA.Category
RWA.Page
Events
Refined for Confluence provides various js events you can listen to, which are triggered on the AJS namespace. 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 ...
});