jQWidgets Forums

jQuery UI Widgets Forums Navigation Menu, Context Menu Minimize menu on the right

Tagged: , , ,

This topic contains 5 replies, has 2 voices, and was last updated by  Nadezhda 10 years, 2 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • Minimize menu on the right #66938

    arkgroup
    Participant

    Can minimize menu located on the right side and open from right?
    Demo shows menu on the left and open from left.

    Thanks

    Minimize menu on the right #66983

    Nadezhda
    Participant

    Hello arkgroup,

    You can set ‘rtl’ property to true and use css to open drop down menu on the right side. Here is an example:

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <title></title>
        <link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" />
        <script type="text/javascript" src="../../scripts/jquery-1.11.1.min.js"></script>
        <script type="text/javascript" src="../../scripts/demos.js"></script>
        <script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script>
        <script type="text/javascript" src="../../jqwidgets/jqxbuttons.js"></script>
        <script type="text/javascript" src="../../jqwidgets/jqxscrollbar.js"></script>
        <script type="text/javascript" src="../../jqwidgets/jqxcheckbox.js"></script>
        <script type="text/javascript" src="../../jqwidgets/jqxmenu.js"></script>
        <style>
            .jqx-menu-minimized-button {
                float: right;
            }
        </style>
        <script type="text/javascript">
            $(document).ready(function () {
                // create jqxMenu
                $("#jqxMenu").jqxMenu({ width: '100%', height: '32px', autoSizeMainItems: false, rtl:true });
                $("#jqxMenu").jqxMenu('minimize');
                $("#jqxMenu").css('visibility', 'visible');
            });
        </script>
    </head>
    <body class='default'>
        <div id='jqxMenu' style='visibility: hidden;'>
            <ul>
                <li><a href="#Home">Home</a></li>
                <li><a href="#Solutions">Solutions</a>
                    <ul style='width: 250px;'>
                        <li><a href="#Education">Education</a></li>
                        <li><a href="#Financial">Financial services</a></li>
                        <li><a href="#Government">Government</a></li>
                        <li><a href="#Manufacturing">Manufacturing</a></li>
                        <li type='separator'></li>
                        <li>Software Solutions
                                    <ul style='width: 220px;'>
                                        <li><a href="#ConsumerPhoto">Consumer photo and video</a></li>
                                        <li><a href="#Mobile">Mobile</a></li>
                                        <li><a href="#RIA">Rich Internet applications</a></li>
                                        <li><a href="#TechnicalCommunication">Technical communication</a></li>
                                        <li><a href="#Training">Training and eLearning</a></li>
                                        <li><a href="#WebConferencing">Web conferencing</a></li>
                                    </ul>
                        </li>
                        <li><a href="#">All industries and solutions</a></li>
                    </ul>
                </li>
                <li><a href="#Products">Products</a>
                    <ul>
                        <li><a href="#PCProducts">PC products</a></li>
                        <li><a href="#MobileProducts">Mobile products</a></li>
                        <li><a href="#AllProducts">All products</a></li>
                    </ul>
                </li>     
            </ul>
        </div>
    </body>
    </html>

    Best Regards,
    Nadezhda

    jQWidgets team
    http://www.jqwidgets.com/

    Minimize menu on the right #66999

    Nadezhda
    Participant

    Hi arkgroup,

    If you do not want to use ‘rtl’ property you can use the following css:

    <style type="text/css">
        .jqx-menu-minimized, .jqx-menu-minimized-button
        {
            float: right;
        }
    </style>

    Best Regards,
    Nadezhda

    jQWidgets team
    http://www.jqwidgets.com/

    Minimize menu on the right #67023

    arkgroup
    Participant

    ok, thanks

    Minimize menu on the right #67028

    arkgroup
    Participant

    Found another thing, menu is not closing after I click on menu item.
    autoCloseOnClick is true by default.

    Thanks

    Minimize menu on the right #67065

    Nadezhda
    Participant

    Hi arkgroup,

    Please, find the following topic which contains more information about this issue: http://www.jqwidgets.com/community/topic/auto-hide-minimized-menu/.

    Best Regards,
    Nadezhda

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.