jQWidgets Forums
jQuery UI Widgets › Forums › Navigation › Menu, Context Menu › Minimize after construction
Tagged: close, itemclick, JavaScript Menu, jQuery Menu, jqwidgets menu, jqxMenu, keyboardnavigation, Menu, minimize
This topic contains 7 replies, has 2 voices, and was last updated by Hristo 8 years, 6 months ago.
-
Author
-
On any demo, call $(“jqxMenu”).jqxMenu(“minimize”, true);
The menu minimizes though when expanding the menu it doesn’t seem to work well. Nor do events (itemclick) trigger anymore.itemclick only triggers on the main menu toggle. Further, the menu doesn’t reload in the same div as before minimizing, thus causing trouble with the predefined click handlers.
Hello CaptainBli,
Could you provide us an example that demonstrates this issue and more detail?
Also, I would like to ask you what you would like to achieve.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comAs I mentioned previously that if you take any example of menu and ask it to minimize and have keyboardNavigation, jqxMenu(“minimize”) it will no longer trigger itemclick or autoclose or act like it does when it is non-minimized. Example:
Fiddle ExampleI would like it to close on click as well. Can we close a minimized menu? I have tried jqxMenu(“close”) with no success. Only upon clicking on the minified icon will it close. I haven’t yet tracked down how that works so that I can call it too.
It appears to be related to the keyboardNavigation option. If I take this out then the minimized menu itemclick’s work, though I still can’t close the menu programmatically. And I need the keyboardNavigation.
Hello CaptainBli,
About the “close” method – Closes the menu (only in context menu mode).
Unfortunately, it is not possible with API options. You could try to create some workaround.
Thank you for your understanding.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comTo help others: in order to close the pop-out menu when minimized I used trigger(“click”) on the icon like
$(".jqx-menu-minimized-button").trigger("click");
I still have not been able to find out a way to have
keyboardNavigation
to work. This is definitely a bug in the code. I have to have keyboard navigation in order for this to be a viable solution.Hello CaptainBli,
Thank you for the interest to jqxMenu.
It is a matter of personal settings can capture condition in which the pressure “esc” or “enter” and perform this logic.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.