export default class AdminMenuHandler extends elementorModules.ViewModule { getDefaultElements() { const settings = this.getSettings(); return { $adminPageMenuLink: jQuery( `a[href="${ settings.path }"]` ), }; } // This method highlights the currently visited submenu item for the slug provided as an argument to this handler. // This method also accepts a jQuery instance of a custom submenu item to highlight. If provided, the provided // item will be the one highlighted. highlightSubMenuItem( $element = null ) { const $submenuItem = $element || this.elements.$adminPageMenuLink; $submenuItem.addClass( 'current' ); // Need to add the 'current' class to the link element's parent `