hideOrShowMenuItemsAction() {
        const target = this;
        let visibility = null;

        if (target.classList.contains('menu-item-hide')) {
            target.classList.remove('eyeShowIcon', 'menu-item-hide');
            target.classList.add('eyeHideIcon', 'menu-item-show');
            target.setAttribute('title', 'Hide page from menu');
            visibility = 'hide';
        } else if (target.classList.contains('menu-item-show')) {
            target.classList.add('eyeShowIcon', 'menu-item-hide');
            target.classList.remove('eyeHideIcon', 'menu-item-show');
            target.setAttribute('title', 'Show page in menu');
            visibility = 'show';
        } else {
            return;
        }

        target.setAttribute('data-visibility', visibility);
        wcmsAdminActions.sendPostRequest('menuItems', ' ', 'menuItemVsbl', target.dataset.menu, visibility);
    }
/**
     * Method for hiding or showing the items from menu
     */
Method for hiding or showing the items from menu
Method for hiding or showing the items from menu
hideOrShowMenuItemsAction() {
        const target = this;
        let visibility = null;
        if (target.classList.contains('menu-item-hide')) {
            target.classList.remove('eyeShowIcon', 'menu-item-hide');
            target.classList.add('eyeHideIcon', 'menu-item-show');
            target.setAttribute('title', 'Hide page from menu');
            visibility = 'hide';
        } else if (target.classList.contains('menu-item-show')) {
            target.classList.add('eyeShowIcon', 'menu-item-hide');
            target.classList.remove('eyeHideIcon', 'menu-item-show');
            target.setAttribute('title', 'Show page in menu');
            visibility = 'show';
        } else {
            return;
        }
        target.setAttribute('data-visibility', visibility);
        wcmsAdminActions.sendPostRequest('menuItems', ' ', 'menuItemVsbl', target.dataset.menu, visibility);
    }
hideOrShowMenuItemsAction ( ) { const target = this ; let visibility = null ; if ( target . classList . contains ( 'menu-item-hide' ) ) { target . classList . remove ( 'eyeShowIcon' , 'menu-item-hide' ) ; target . classList . add ( 'eyeHideIcon' , 'menu-item-show' ) ; target . setAttribute ( 'title' , 'Hide page from menu' ) ; visibility = 'hide' ; } else if ( target . classList . contains ( 'menu-item-show' ) ) { target . classList . add ( 'eyeShowIcon' , 'menu-item-hide' ) ; target . classList . remove ( 'eyeHideIcon' , 'menu-item-show' ) ; target . setAttribute ( 'title' , 'Show page in menu' ) ; visibility = 'show' ; } else { return ; } target . setAttribute ( 'data-visibility' , visibility ) ; wcmsAdminActions . sendPostRequest ( 'menuItems' , ' ' , 'menuItemVsbl' , target . dataset . menu , visibility ) ; }
Method for hiding or showing the items from menu
Method for hiding or showing the items from menu