jQuery UI Widgets Forums General Discussions jqxListMenu and submenus

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 11 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • jqxListMenu and submenus #31748

    leonell
    Participant

    Hello,
    how to hide BackButton on top menu but have them on submenu?
    And similarly for AutoSeparators, how to have them on top menu only?
    Thank you very much,
    L.

    jqxListMenu and submenus #31852

    Dimitar
    Participant

    Hello L.,

    1) Unfortunately, it is not possible to hide the Back button only for the top-level menu.

    2) Here is an example that shows how to have auto separators on top-level only:

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <script type="text/javascript" src="../../scripts/gettheme.js"></script>
    <link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" />
    <script type="text/javascript" src="../../scripts/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxlistmenu.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxbuttons.js"></script>
    <script type="text/javascript">
    $(document).ready(function () {
    $('#list').jqxListMenu({ width: '50%', enableScrolling: false, theme: getDemoTheme(), showHeader: true, showBackButton: true, showFilter: false, autoSeparators: false });
    });
    </script>
    </head>
    <body class='default'>
    <ul id="list" data-role="listmenu" data-auto-separators="true">
    <li>OSI
    <ul data-role="listmenu" data-auto-separators="false">
    <li>Application Layer
    <ol data-role="listmenu">
    <li>SIP</li>
    <li>DNS</li>
    <li>FTP</li>
    <li>RTP</li>
    <li>DHCP</li>
    </ol>
    </li>
    <li>Presentation Layer
    <ol data-role="listmenu">
    <li>SSL</li>
    <li>TLS</li>
    </ol>
    </li>
    <li>Session Layer
    <ol data-role="listmenu">
    <li>NetBIOS</li>
    <li>SPDY</li>
    </ol>
    </li>
    <li>Transport Layer
    <ol data-role="listmenu">
    <li>TCP</li>
    <li>UDP</li>
    <li>SCTP</li>
    </ol>
    </li>
    <li>Network Layer
    <ol data-role="listmenu">
    <li>IP</li>
    <li>ARP</li>
    <li>ICMP</li>
    </ol>
    </li>
    <li>Data Link Layer
    <ol data-role="listmenu">
    <li>ATM</li>
    <li>SDLS</li>
    <li>LLC</li>
    </ol>
    </li>
    <li>Physical Layer
    <ol data-role="listmenu">
    <li>EIA/TIA-232</li>
    <li>ITU-T V-Series</li>
    <li>DSL</li>
    </ol>
    </li>
    </ul>
    </li>
    <li>TCP/IP
    <ul data-role="listmenu" data-auto-separators="false">
    <li>Application layer
    <ol data-role="listmenu">
    <li>DHCP</li>
    <li>DNS</li>
    <li>FTP</li>
    <li>HTTP</li>
    <li>IMAP</li>
    <li>LDAP</li>
    <li>XMPP</li>
    <li>SSH</li>
    <li>RIP</li>
    </ol>
    </li>
    <li>Transport layer
    <ol data-role="listmenu">
    <li>TCP</li>
    <li>UDP</li>
    <li>SCTP</li>
    </ol>
    </li>
    <li>Internet layer
    <ol data-role="listmenu">
    <li>IP</li>
    <li>ICMP</li>
    <li>ECN</li>
    </ol>
    </li>
    <li>Link layer
    <ol data-role="listmenu">
    <li>ARP</li>
    <li>NDP</li>
    <li>DSL</li>
    </ol>
    </li>
    </ul>
    </li>
    </ul>
    </body>
    </html>

    Best Regards,
    Dimitar

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

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

You must be logged in to reply to this topic.