Questions tagged [submenu]

A submenu is a menu, that is a list of options or commands, which is contained within another menu.

Filter by
Sorted by
Tagged with
347 votes
11 answers
462k views

Bootstrap dropdown sub menu missing

Bootstrap 3 is still at RC, but I was just trying to implement it. I couldn't figure out how to put a sub menu class. Even there is no class in css and even the new docs don't say anything about it ...
DevC's user avatar
  • 7,195
49 votes
8 answers
90k views

Android adding a submenu to a menuItem, where is addSubMenu()?

I want to add a submenu inside my OptionsMenu to a menuItem, programatically according to my parameters. I've checked "MenuItem" in android sdk and there is no addSubMenu() method!, although you can ...
ruhalde's user avatar
  • 3,541
45 votes
6 answers
109k views

How do I generate a custom menu/sub-menu system using wp_get_nav_menu_items in WordPress?

I have an html structure that requires customization of the wp_nav_menu code. This is the html I need to generate: <ul class="main-nav"> <li class="item"> <a href="http://...
hitautodestruct's user avatar
31 votes
8 answers
37k views

How to add dividers between specific menu items?

Background I have a menu item in the action bar (toolbar actually) that when clicked, shows a list of items to choose from, similar to radio-buttons: <menu xmlns:android="http://schemas.android....
android developer's user avatar
30 votes
4 answers
39k views

Android action bar menu item with actionLayout not working properly

Hi I am developing an Android application. In my application I am using Sherlock action. I've defined few menu items in action-bar like in following manner <menu xmlns:android="http://schemas....
nilkash's user avatar
  • 7,508
24 votes
3 answers
7k views

How to implement half-circle menu (sub item) with CSS and JavaScript on mobile web? [closed]

I want to use a half-circle menu when I surf the mobile web with my right hand. Can somebody teach me how to implement half-circle menu (sub item) with CSS and JavaScript on mobile web? I have tried ...
Alan Chen's user avatar
  • 347
15 votes
3 answers
3k views

NSSharingService Sharing Submenu

How do I add the Share submenu in a Mac app? An example is Safari > File > Share. I poked at the Apple SharingServices sample code, but it does not include a working menu item. Right now I have a ...
DenVog's user avatar
  • 4,266
15 votes
1 answer
986 views

How to use vimperator to interact with sites that use sub-menus? [closed]

On sites that use a sub menus I find myself always having to use the mouse to hover/click the menu root to pull down the rest of the menu. How can I do this without having to use the mouse? An ...
kyle whyshoulditellyou's user avatar
11 votes
7 answers
50k views

How to add new custom submenu under another plugins menu

There is plugin called Shopp in my WP admin page , this plugin has got top level menu "Shopp" . This is the top level menu: $menus['main'] = add_menu_page('Shopp', 'Shopp', SHOPP_USERLEVEL, 'shopp-...
Tom's user avatar
  • 111
11 votes
2 answers
21k views

How to display different layouts based on button clicks in PySimple GUI? (Persistent window loop)

I am wondering if there is a way that I can manage different layouts based on button clicks in PySimple GUI. I am just starting off using this framework and I want to find the best way of navigating ...
nsquires's user avatar
  • 1,029
11 votes
4 answers
48k views

bootstrap 3 navbar dropdown box color

I am using flat UI theme with bootstrap 3. The flat UI theme navbar is not working correctly and many are having similar issues with it that have posted on github. So I decided to just use the ...
Jamie Collingwood's user avatar
11 votes
1 answer
7k views

How do I hide a sub-menu in QMenu

I have an application where I generate menu items, and I want to set the visibility of a particular sub-menu. I tried using setVisibility(False), but this did not work. setVisibility() works for menu ...
Rao's user avatar
  • 2,942
10 votes
1 answer
7k views

How to add a submenu entry to Eclipse Package Explorer context menu item using org.eclipse.ui.menus?

I am trying to add a submenu entry to an item from the context menu of the Eclipse Package Explorer. The menu entry is already defined via org.eclipse.ui.popupMenus in another plugin, not in the one ...
catalina's user avatar
  • 223
10 votes
2 answers
8k views

Angular material menu opening on mouse hover

I'm using Angular Material menubar to show a menu and the sub menu under each menu item. I've added ng-click event to open the submenu. But the menu is still opening on mouse hover on the parent menu ...
Indranil Mondal's user avatar
9 votes
3 answers
73k views

Bootstrap 3 vertical menu with toggable submenus

Using Bootstrap 3, I need to construct a vertical menu containing toggable submenus. I have the following structure: <nav> <ul> <li><a href="#">Item 1</a><...
Gustavo Daniel's user avatar
9 votes
1 answer
10k views

Adding an onclick to a submenu?

I have an onclick function for my menu but I can't figure out what the ID is for my submenu so that I can tell the submenu what to do when the user click on it. I created my submenu programmatically ...
Pallas's user avatar
  • 1,559
9 votes
1 answer
714 views

How to add sub menu in mean.io?

I've been wandering around the internet to find a way to add submenu's to the mean.io application. SystemPackage.menus.add({ title: 'Log Out', link: 'Log Out', roles: ['authenticated'],...
Brune's user avatar
  • 1,060
8 votes
3 answers
50k views

Add dropdown arrow indicators to menu items that have submenus only?

I am currently trying to add arrow indicators on my navigation menu for items which have submenu options. Currently I am using this CSS: .mainNav li > a:after { color: #444; content: ' ▾'; }...
user3101431's user avatar
8 votes
5 answers
29k views

how to create a nested menu using angular mat-nav material? (updated)

I'm trying to create a nested mat-menu items for my angular app. I got some solutions only where the nested options would appear as a pop-up, where i'm expecting it to be a drop-down where we could ...
krishna ram's user avatar
8 votes
1 answer
13k views

How to create a submenu for Floating Action Button in Android Material Design?

I want to create a submenu after click in my floating action button like this : I already know this Library : https://github.com/futuresimple/android-floating-action-button But I want to create ...
lopez.mikhael's user avatar
8 votes
1 answer
1k views

Making JPopupMenu's submenus heavyweight

http://java.sun.com/products/jfc/tsc/articles/mixing/index.html advices how to make JPopupMenus heavyweight. Just set the property: setLightWeightPopupEnabled(false); It works fine, but if I have ...
Joonas Pulakka's user avatar
8 votes
4 answers
3k views

How to create Popup Menu as submenu of another Popup Menu's menu item

I want to create popup menu submenu of another popup menu's menu item.Like below: Advance Thanks
Bhavinkumar Patel's user avatar
7 votes
3 answers
15k views

Android Open Menu from a button

Is there a way for a button to call a submenu? I currently have a menu where if they select one of the options it opens a submenu, however I want to be able to start the submenu from the Button ...
txagdev's user avatar
  • 71
7 votes
3 answers
2k views

Cloud9 IDE Main Menu Bar (File, Edit, Run, etc.) stuck minimized?

I've seemed to minimize the Main Menu Bar (not the specific term), resting at the top, or ceiling, in the Cloud9 IDE. There's a small drop-down arrow located on the top-center and you'd think that ...
Rusty Young's user avatar
7 votes
5 answers
27k views

How to add class and element to <a>-tag in sub-menu of "wp_nav_menu" in WordPress?

i want to add a class to the a tag of an sub-menu and a b tag inside the link. WordPress gives me this code: <li id="menu-item-72" class="menu-item menu-item-type-post_type menu-item-...
Cray's user avatar
  • 5,387
7 votes
2 answers
15k views

Creating a submenu

I want to make a sub menu like this Mozilla Firefox sub menu: This is what it is like now (in my program): But I want it to look like Firefox were it has an additional menu when you have your mouse ...
Smarty57's user avatar
7 votes
2 answers
10k views

Add Submenu to a Menuitem Programmatically - Android

I am trying to add a SubMenu to my MenuItem programmatically, How do I do that? here's my code so far: @Override public boolean onCreateOptionsMenu(Menu menu) { menu.add(Menu.NONE, R.id....
dinbrca's user avatar
  • 1,097
7 votes
3 answers
7k views

ActionBarSherlock: open submenu with menu button

I'm using ActionBarSherlock-4.1.0-0 and I would like to open my submenu in the Actionbar with the hardware menu button. I'm planing an update and in my old version I used the "normal" menu. I'd like ...
Paul Spiesberger's user avatar
7 votes
2 answers
3k views

How to change the indentation of sub menu items in a NavigationView?

When we define a NavigationView with a section with sub menu items. It left aligns the sub items with the section title: <menu xmlns:android="http://schemas.android.com/apk/res/android"> <...
infinite-loop's user avatar
7 votes
1 answer
3k views

navbarMenu within navbarMenu in Shiny

If I use the following UI within Shiny I get roughly the output I want but it isn't actually working as the lowest level navbarMenu displays it's top level label and the arrow to indicate it is ...
Mark's user avatar
  • 349
7 votes
2 answers
4k views

PHP - Making a nested tree menu structure from a flat array

I am making a nested menu array from the response that I get from WP database. I am getting the data from WP in the controller in Laravel with the help of corcel package, and then making an array with ...
Leff's user avatar
  • 1,618
6 votes
1 answer
72k views

How To Create SubMenu in Drop Down (HTML/CSS)

I just want create submenu in my drop down ... but I cant find code to fix this. HTML CODE : <nav id='menu'> <ul> <li><a class='home' href='/'>Home</a></li> ...
Adam Muiz's user avatar
  • 401
6 votes
2 answers
20k views

Tkinter - How to create submenus in menubar

Is it possible? By looking at the options I'm stumped. Searching on the web hasn't lead me anywhere. Can I create a submenu in the menubar. I'm referring to doing something similar to Idle Shell when ...
confused's user avatar
  • 1,291
6 votes
4 answers
6k views

Android support:design NavigationView checked menu sub items

I have recently started converting my android app to use the latest support library called support:design. While implementing the new NavigationView i've stumbled upon a problem displaying the ...
John Van den Berg's user avatar
6 votes
1 answer
3k views

submenu on context menuitem in vscode extensions

i see a lot of github issues that seem to indicate that the ability to add a submenu that drops down when we click on a custom context menu item, say in explorer/context, was added in Sep 2020, but i ...
Nilesh's user avatar
  • 145
6 votes
2 answers
6k views

How to change color of text and icon of Sub-Menu attached to Navigation view?

I am trying to figure out how I can change color of sub-menu items which is actually attached to navigation view. Following codes are actually from default template of Navigation Drawer which is ...
Vivek Kumar's user avatar
  • 1,232
6 votes
3 answers
19k views

Prevent block element from overflowing parent element's width

I have a menu (jsfiddle) which displays like below, it is built from <ul> and <li> elements. The child menu elements show up below the parent element, and the container is a fixed-width &...
likeitlikeit's user avatar
  • 5,628
6 votes
1 answer
894 views

Display selected sub-menuItem in NSPopUpButton

I have filled my NSPopUpButton with menu and submenus. When I select a menuItem on the root menu (so, not a sub-menuItem), it propery displays the menuItem selected. And when I re-click on the popUp ...
Leonardo's user avatar
  • 779
6 votes
1 answer
2k views

Creating a submenu in the explorer-shell-extention?

I created a small script that changes a filename (replacing spaces with _, etc.). I'm controlling this script with parameters. Now I'd like to include that into my explorer-shell-extention, so I ...
user1369594's user avatar
6 votes
2 answers
5k views

Android: How to include a menu xml inside another menu xml?

Simple question. I have my menu of child items: <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android"> <item android:...
dwjohnston's user avatar
  • 12.1k
6 votes
2 answers
5k views

Action-bar — sub menu item with text and image not working properly

I am developing small Android application in which I am using action bar with some menu items. One menu item contains sub menu. Now what I want to do is to display menu item with text and icon always. ...
nilkash's user avatar
  • 7,508
6 votes
1 answer
4k views

ACF object in wordpress menu-walker

I have a WP-site, and I want a sub-menu for each menu-items, with a li-item for each the_sub_field('info_block_header'). So I'm trying to create a walker with a ACF-loop inside, however I don't now ...
Carl Papworth's user avatar
6 votes
1 answer
2k views

Action bar sub menu not working with actionLayout

Hi I am developing an android application. In my application I am using ActionBarSherlock. I defined few menu items in the action-bar, in the following way: <menu xmlns:android="http://schemas....
nilkash's user avatar
  • 7,508
5 votes
1 answer
27k views

How to add menu item dynamically during run time [closed]

I can perform the submenu list down using the codes below: Dim cm As GoContextMenu = New GoContextMenu(view) 'GoContextMenu Inherits System.Windows.Forms.ContextMenu Dim subTop(1) As MenuItem ...
user2150279's user avatar
5 votes
1 answer
18k views

How to create submenu in the vuetify main drawer/navigation

I'm new to vuetify js. I've started to use it and need your help to accomplish the submenu in the right side menu. Please see attached. I'm reffering to the one in the left with arrow down to select ...
user3928201's user avatar
5 votes
3 answers
4k views

Remove subsection and from navigation drawer submenu

I want to remove the unwanted space created in submenu. Is there any possibility I can achieve it from menu.xml class? Here is my navigation_drawer_menu.xml <menu xmlns:android="http://schemas....
awaistoor's user avatar
  • 786
5 votes
1 answer
21k views

How to create custom text forms in admin panel and show them on my page (Wordpress)

Introduction: At this moment I'm creating my first custom Wordpress theme. Now I succesfully created a HTML/CSS template and converted this to fit wordpress (including header.php, index.php, footer....
user3080513's user avatar
5 votes
2 answers
7k views

c++ win32 dynamic menu - which menu item was selected

i have a win32 application (c++) that has a context menu bind to the right click on the notify icon. The menu/submenu items are dynamicly created and changed during runtime. InsertMenu(hSettings, 0,...
blejzz's user avatar
  • 3,329
5 votes
2 answers
1k views

How can I access a GWT menubar popup panel / submenu?

I'm trying to add some mouse listeners to the sub menus/ cascading menus of GWT's MenuBar. Sadly, I cannot seem to access the submenu popuppanel directly - the method to do so (getPopup() ) is private....
user2197116's user avatar
5 votes
2 answers
4k views

Android - ActionBarSherlock - Set textcolor of text in menu

I want to change white color of text to orange. Here is a example.
Paulo Blasterx's user avatar

1
2 3 4 5
29