--> // position: 1 // persistentFiltersEnabled: true, // Declaring all DOM elements here for clarity // Registering all event listeners here for clarity // Generate the dropup menu items, insert the report page names into them, then append them to the DOM. Will check if the page is not hidden first. Loading the report with Edit rights shows hidden pages so if you want to use Edit rights you should modify the below check for visibility. // Map over all dropup items then listen to click events on them. Also hide the dropup after a selection for better UX. // Unhide dropup items hidden by the setActivePage function. // Set the current page as active, hide it from the dropup menu and update the current page display text // document.getElementById(page).style.display = 'none'; // Update the current page variable based on what UI element the user has clicked, then call setActivePage. --> -->