Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8450259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:55:22+00:00 2026-06-10T10:55:22+00:00

folks. Here’s the problem. Let’s say I have three items on my menu. I

  • 0

folks.

Here’s the problem. Let’s say I have three items on my menu. I want the first one to be invisible (like transparent) but at the same time consumes space. And the second and third to be display normally.

Thanks

EDITED:

I have three items on the menu. I have menu arranged vertically, so like this:

Menu:    
Item1
Item2
Item3

Now, I want the first item to be invisible (still there consuming space, but is not visible to the eye). So it will look like this now:

Menu:

Item2
Item3

You see, it’s still there but not any part of it is visible. (background color set to transparent, no text, etc.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T10:55:23+00:00Added an answer on June 10, 2026 at 10:55 am

    I think menu items only have two options – setVisible(false) which removes it (doesn’t take up space), or setEnabled(false), which grays out the option but it’s still visible.

    If you really want to have it take up space, perhaps you can try a combination of setTitle(“”) with setEnabled(false) on the menuitem which you want to make hidden but still consume space.

    e.g.,

    menu.getItem(0).setTitle("");
    menu.getItem(0).setEnabled(false);
    

    This way, the item will be there, but it will be disabled so that clicking it will not trigger its action.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

OK folks, here's a fun one for you. So our back office system has
Folks I have a sealed class as follows. I want to extend this sealed
Folks, here's a thorny problem for you! A part of the TickZoom system must
Morning folks. Novice Rich here once again requesting assistance. I have just started dabbling
Here's the problem folks I'm using a Telerik RadGrid. Within is a FormTemplate with
Hey Folks,I have pasted my code here. Dialog.inform contains a 'long' value which is
Folks, i have the following problem. My website uses an iframe to select an
Sorry folks...first post here. Just getting the hang of this site. Thanks for the
Very new to javascript here folks, so forgive the newbie question. I want to
Hey folks, I have to apologize for my inexperience here, I've been working on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.