Details
-
Type: Improvement
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: EE-3.0.0.GA_P01, 3.2, EE-3.2.0.BETA
-
Fix Version/s: 3.3
-
Component/s: ACE-Components
-
Labels:None
-
Environment:All
-
Assignee Priority:P1
-
Salesforce Case Reference:
-
Affects:Documentation (User Guide, Ref. Guide, etc.)
Description
Feature Request: Add a way to show the sub menu's of a multi column menuBar centred on the screen.
At the moment the sub menu items will display to the left or right of its parent item. For example, if there are three main menu items (Menu One, Menu Two, Menu Three) display horizontally. Menu two has five sub menu items. With the current implementation these menu items will display to the left or right starting with the first sub-menu item. Depending on browser area and positioning these sub-menu items can wrap to a new line.
This feature request is to display the sub-menu items centred under the parent menu item. From the example mentioned before this would make the first two menu items display to the left, one will be centred under the parent, and then two more to the right, all on one line.
At the moment the sub menu items will display to the left or right of its parent item. For example, if there are three main menu items (Menu One, Menu Two, Menu Three) display horizontally. Menu two has five sub menu items. With the current implementation these menu items will display to the left or right starting with the first sub-menu item. Depending on browser area and positioning these sub-menu items can wrap to a new line.
This feature request is to display the sub-menu items centred under the parent menu item. From the example mentioned before this would make the first two menu items display to the left, one will be centred under the parent, and then two more to the right, all on one line.
I have a possible solution for this request. What I have right now is added support for the 'center' and 'middle' keywords in the 'direction' attribute.
If you use the 'center' keyword (instead of 'left' or 'right') it will center ALL the 1st level submenus of the menu bar, as in the issue description above. It's not clear to me if the is request is to only center ace:multiColumnSubmenu's or all submenus.
The 'middle' keyword was also added to vertically center all 2nd and deeper level submenus of a menu bar (instead of 'up' or 'down').