{"title":"JavaScript API","canonical":"https://help.refined.com/space/CONFDC/4704257056/JavaScript%20API","format":"adf","document":{"type":"doc","content":[{"type":"heading","attrs":{"level":2},"content":[{"text":"Public JavaScript methods","type":"text"}]},{"type":"paragraph","content":[{"text":"The public JavaScript events are placed on the RefinedWiki API namespace: ","type":"text"},{"text":"RWA. ","type":"text","marks":[{"type":"strong"}]},{"text":"This is divided into sub-namespaces based on functionality.","type":"text"}]},{"type":"heading","attrs":{"level":3},"content":[{"text":"RWA.Category ","type":"text"}]},{"type":"expand","attrs":{"title":"hideUserCategory"},"content":[{"type":"paragraph","content":[{"text":"/** ","type":"text","marks":[{"type":"code"}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"Hides the user category link located in the category menu. ","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"Also removes all User category dropdowns ","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"@return void - no return value ","type":"text"}]}]}]},{"type":"paragraph","content":[{"text":" */ ","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":"RWA.Category.hideUserCategory = function();","type":"text","marks":[{"type":"code"}]}]}]},{"type":"expand","attrs":{"title":"hideInlineUserCategoryDialogs"},"content":[{"type":"paragraph","content":[{"text":"/** ","type":"text","marks":[{"type":"code"}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"Hides all inline user category inline dialogs. Note that this won't hide users associated with a top level ","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"category, only open dialogs refering to subcategories. ","type":"text"}]}]}]},{"type":"paragraph","content":[{"text":" */ ","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":"RWA.Category.hideInlineUserCategoryDialogs = function();","type":"text","marks":[{"type":"code"}]}]}]},{"type":"expand","attrs":{"title":"hideCategory"},"content":[{"type":"paragraph","content":[{"text":"/","type":"text"},{"text":"** ","type":"text","marks":[{"type":"code"}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"Hides any open category by closing the category dropdown and any open ","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"user category dialogs. This function will trigger a  ","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"'rw-categories:category-dropdown-closed' event. ","type":"text"}]}]}]},{"type":"paragraph","content":[{"text":"* ","type":"text"}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"@return the ID selector for the DOM element representing the closed  ","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"category. On the form rw_category_key_{categoryKey} ","type":"text"}]}]}]},{"type":"paragraph","content":[{"text":" */","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":" RWA.Category.hideCategory = function();","type":"text","marks":[{"type":"code"}]}]}]},{"type":"expand","attrs":{"title":"showCategory"},"content":[{"type":"paragraph","content":[{"text":"/**","type":"text","marks":[{"type":"code"}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"Shows the requested top level category by opening its category ","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"dropdown. Will trigger 'rw-categories:category-dropdown-open' event.","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"@param key - nameKey of the category to open.","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"@param expandAll - True or false depending on if the containing ","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"subcategories in the dropdown should be expanded or collapsed. Usable ","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"if collapsed mode is used.","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"@param callback - Callback function for when the dropdown content has","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"been rendered. If supplied this will be called with two parameters:","type":"text"}]}]}]},{"type":"paragraph","content":[{"text":" *","type":"text","marks":[{"type":"code"}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"$el - the category dropdown wrapper as jQuery object.","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"category - JSON object representing the category just opened - with ","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"any fetched data populated as well.","type":"text"}]}]}]},{"type":"paragraph","content":[{"text":" *","type":"text","marks":[{"type":"code"}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"@return boolean - True if the category with the specified key was ","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"found - false otherwise. Use the callback function to get relevant values.","type":"text"}]}]}]},{"type":"paragraph","content":[{"text":" */","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":"RWA.Category.showCategory = function(key, expandAll, callback);","type":"text","marks":[{"type":"code"}]}]}]},{"type":"expand","attrs":{"title":"toggleSubCategory"},"content":[{"type":"paragraph","content":[{"text":"/**","type":"text","marks":[{"type":"code"}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"Toggles the requested subcategory by collapsing/expanding it.","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"@param subCategory - Either the key of the subcategory e.g. 'subKey' ","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"or the entire jQuery selector string e.g. 'rw_sub_category_key_subKey', ","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"or the jQuery object itself e.g. $('#rw_sub_category_key_subKey')","type":"text"}]}]}]},{"type":"paragraph","content":[{"text":" *","type":"text","marks":[{"type":"code"}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"Will trigger a 'rw-categories:category-opened' or a ","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"'rw-categories:category-closed' event depending on the result of the ","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"toggle.","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"@returns void - no return value","type":"text"}]}]}]},{"type":"paragraph","content":[{"text":" */","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":"RWA.Category.toggleSubCategory(subCategory);","type":"text","marks":[{"type":"code"}]}]}]},{"type":"expand","attrs":{"title":"getActiveCategoryKey"},"content":[{"type":"paragraph","content":[{"text":"/**","type":"text","marks":[{"type":"code"}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"Returns the key of the active top level category. A category is active","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"if a user is viewing any content placed in that top level category. This ","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"includes subcategories, category dashboards, or content placed in that ","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"category or any subcategory, such as a space or a blog. The category ","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"doesn't have to be open - i.e. showing a dropdown to be concidered ","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"'active'.","type":"text"}]}]}]},{"type":"paragraph","content":[{"text":" *","type":"text","marks":[{"type":"code"}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"@return string representation of the active category key. The element for","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"that category can then be reached at #rw_category_key_{categoryKey}","type":"text"}]}]}]},{"type":"paragraph","content":[{"text":" */","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":"RWA.Category.getActiveCategoryKey();","type":"text","marks":[{"type":"code"}]}]}]},{"type":"expand","attrs":{"title":"settings"},"content":[{"type":"paragraph","content":[{"text":"From version 5.0.2","type":"text","marks":[{"type":"em"}]}]},{"type":"paragraph","content":[{"text":"/**","type":"text","marks":[{"type":"code"}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"Returns the settings associated to the categories and category menu. ","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"This will be an object with keys and associated values. Some examples are","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"collapsedSubCategories - boolean flag for if collapsed categories are used.","type":"text"}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"showSpaceLogo - true if space logos are shown.","type":"text"}]}]}]},{"type":"paragraph","content":[{"text":"*/","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":"RWA.Category.settings;","type":"text","marks":[{"type":"code"}]}]}]},{"type":"heading","attrs":{"level":3},"content":[{"text":"RWA.Page","type":"text"}]},{"type":"expand","attrs":{"title":"isFullscreen"},"content":[{"type":"paragraph","content":[{"text":"From version 5.0.5","type":"text","marks":[{"type":"em"}]}]},{"type":"paragraph","content":[{"text":"/**","type":"text","marks":[{"type":"code"}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"Returns true if we are currently in fullscreen mode.","type":"text"}]}]}]},{"type":"paragraph","content":[{"text":" */","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":"RWA.Page.isFullscreen();","type":"text","marks":[{"type":"code"}]}]}]},{"type":"expand","attrs":{"title":"openFullscreen"},"content":[{"type":"paragraph","content":[{"text":"From version 5.0.5","type":"text","marks":[{"type":"em"}]}]},{"type":"paragraph","content":[{"text":"/**","type":"text","marks":[{"type":"code"}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"Opens the current page in fullscreen mode. This will trigger the 'rw-page:fullscreen-toggle' event.","type":"text"}]}]}]},{"type":"paragraph","content":[{"text":" */","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":"RWA.Page.openFullscreen();","type":"text","marks":[{"type":"code"}]}]}]},{"type":"expand","attrs":{"title":"closeFullscreen"},"content":[{"type":"paragraph","content":[{"text":"From version 5.0.5","type":"text","marks":[{"type":"em"}]}]},{"type":"paragraph","content":[{"text":"/**","type":"text","marks":[{"type":"code"}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"Closes the fullscreen mode for the current page. This will trigger the 'rw-page:fullscreen-toggle' event.","type":"text"}]}]}]},{"type":"paragraph","content":[{"text":" */","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":"RWA.Page.closeFullscreen();","type":"text","marks":[{"type":"code"}]}]}]},{"type":"heading","attrs":{"level":2},"content":[{"text":"Events","type":"text"}]},{"type":"paragraph","content":[{"text":"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:","type":"text"}]},{"type":"paragraph","content":[{"text":"AJS.bind('rw-categories:category-opened', function(e, $el, category){ ","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":"  // A collapsed category was just opened. Check if we should append our cool feature ... ","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":"});","type":"text","marks":[{"type":"code"}]}]},{"type":"heading","attrs":{"level":3},"content":[{"text":"Available rw-categories events","type":"text"}]},{"type":"expand","attrs":{"title":"Category menu loaded"},"content":[{"type":"paragraph","content":[{"text":"// Triggered when the top navigation has been populated with the top-level categories. ","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":"AJS.bind('rw-categories:menu-loaded', function(e, $el, categories){ });","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph"},{"type":"paragraph","content":[{"text":"$el - ","type":"text","marks":[{"type":"strong"}]},{"text":"jQuery object representing the DOM element containing the category menu. This also includes the first 'Dashboard' item if present.","type":"text"},{"text":"e - ","type":"text","marks":[{"type":"strong"}]},{"text":"jQuery Event","type":"text"}]},{"type":"paragraph","content":[{"text":"categories - ","type":"text","marks":[{"type":"strong"}]},{"text":"JSON Array containing all categories loaded in the navigation menu. See other category events for category attributes.","type":"text"}]}]},{"type":"expand","attrs":{"title":"Collapsed category opened"},"content":[{"type":"paragraph","content":[{"text":"// Triggered when a collapsable (sub)category is opened within the category dropdown. ","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":"// Opening a subcategory will load and render it's content. If the category previously ","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":"// has loaded the content is just showed as it's already present in the DOM. ","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":"AJS.bind('rw-categories:category-opened', function(e, $el, category){ });","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph"},{"type":"paragraph","content":[{"text":"$el - ","type":"text","marks":[{"type":"strong"}]},{"text":"jQuery object representing the DOM element containing the category that has been opened.","type":"text"},{"text":"e - ","type":"text","marks":[{"type":"strong"}]},{"text":"jQuery Event","type":"text"}]},{"type":"paragraph","content":[{"text":"category - ","type":"text","marks":[{"type":"strong"}]},{"text":"JSON object representing the category in question. Some useful attributes include:","type":"text"}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"canEdit: boolean","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"children: Array","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"link: Object","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"name: string","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"nameKey: string","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"parentKey: string","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"subCategories: Array","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"themeId: int","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"type: string","type":"text"}]}]}]}]},{"type":"expand","attrs":{"title":"Collapsed category closed"},"content":[{"type":"paragraph","content":[{"text":"// Triggered when a collapsable (sub)category is closed within the category dropdown. ","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":"// Closing a subcategory will just hide its content rather than delete it - in order to ","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":"// be able to re-render without having to re-fetch the content. ","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":"AJS.bind('rw-categories:category-closed', function(e, $el, category){ });","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph"},{"type":"paragraph","content":[{"text":"$el - ","type":"text","marks":[{"type":"strong"}]},{"text":"jQuery object representing the DOM element containing the category that has been closed.","type":"text"},{"text":"e - ","type":"text","marks":[{"type":"strong"}]},{"text":"jQuery Event","type":"text"}]},{"type":"paragraph","content":[{"text":"category - ","type":"text","marks":[{"type":"strong"}]},{"text":"JSON object representing the category in question. Some useful attributes include:","type":"text"}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"canEdit: boolean","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"children: Array","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"link: Object","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"name: string","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"nameKey: string","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"parentKey: string","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"subCategories: Array","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"themeId: int","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"type: string","type":"text"}]}]}]}]},{"type":"expand","attrs":{"title":"Category dropdown open"},"content":[{"type":"paragraph","content":[{"text":"// Triggers when the category dropdown is opened. At this stage the $el will contain all category elements that will be populated with data. ","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":"// If the user is using collapsed subcategories, these elements will only contain the expandable header of the category. In those cases you ","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":"// could listen to rw-categories:category-opened and rw-categories:category-closed to get info on when the collapsed categories are toggled. ","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":"AJS.bind('rw-categories:category-dropdown-open', function(e, $el, category){ });  ","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph"},{"type":"paragraph","content":[{"text":"e - ","type":"text","marks":[{"type":"strong"}]},{"text":"jQuery Event","type":"text"}]},{"type":"paragraph","content":[{"text":"$el - ","type":"text","marks":[{"type":"strong"}]},{"text":"jQuery object representing the DOM element containing the dropdown wrapper that has been opened.","type":"text"}]},{"type":"paragraph","content":[{"text":"category - ","type":"text","marks":[{"type":"strong"}]},{"text":"JSON object representing the category in question. Some useful attributes include:","type":"text"}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"canEdit: boolean","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"children: Array","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"link: Object","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"name: string","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"nameKey: string","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"parentKey: string","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"subCategories: Array","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"themeId: int","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"type: string","type":"text"}]}]}]}]},{"type":"expand","attrs":{"title":"Category dropdown closed"},"content":[{"type":"paragraph","content":[{"text":"// Triggered when the category dropdown is hidden ","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":"// selector == rw_category_key_{categoryKey} ","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":"// Denotes the id-attribute of the element that has been hidden. ","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":"AJS.bind('rw-categories:category-dropdown-closed', function(e, $el, category){ });","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph"},{"type":"paragraph","content":[{"text":"e - ","type":"text","marks":[{"type":"strong"}]},{"text":"jQuery Event","type":"text"}]},{"type":"paragraph","content":[{"text":"$el - ","type":"text","marks":[{"type":"strong"}]},{"text":"jQuery object representing the DOM element containing the dropdown wrapper that has been closed.","type":"text"}]},{"type":"paragraph","content":[{"text":"category - ","type":"text","marks":[{"type":"strong"}]},{"text":"JSON object representing the category in question. Some useful attributes include:","type":"text"}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"canEdit: boolean","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"children: Array","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"link: Object","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"name: string","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"nameKey: string","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"parentKey: string","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"subCategories: Array","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"themeId: int","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"text":"type: string","type":"text"}]}]}]}]},{"type":"heading","attrs":{"level":3},"content":[{"text":"Available rw-page events","type":"text"}]},{"type":"expand","attrs":{"title":"Fullscreen toggle"},"content":[{"type":"paragraph","content":[{"text":"// Triggered when the fullscreen feature is opened or closed","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":"AJS.bind('rw-page:fullscreen-toggle', function(e, $el, isFullscreen) {  });","type":"text","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"text":"$el - ","type":"text","marks":[{"type":"strong"}]},{"text":"jQuery object representing the DOM element containing the page. div#rw_main_column.","type":"text"},{"text":"e - ","type":"text","marks":[{"type":"strong"}]},{"text":"jQuery Event","type":"text"}]},{"type":"paragraph","content":[{"text":"isFullscreen - ","type":"text","marks":[{"type":"strong"}]},{"text":"true if the page is currently in fullscreen","type":"text"}]}]}],"version":1}}