This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Toggled item Posts
  • Toggled item #3236

    Black Moon

    Hi All!

    Is it possible to toggle on/off items in menu?

    I need menu with button toggle ability (like common toggle button)
    Analogue – is .net buttonbar.

    Toggled item #3253

    Peter Stoev

    Hi Black Moon,

    The following example code shows how to add a Toggle Button to the jqxMenu:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <html xmlns="">
    <link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" />
    <script type="text/javascript" src="../../scripts/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxmenu.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxbuttons.js"></script>
    <script type="text/javascript">
    $(document).ready(function () {
    var theme = '';
    // Create a jqxMenu
    $("#jqxMenu").jqxMenu({ width: '650', height: '35px', autoOpen: false, autoCloseOnMouseLeave: false, showTopLevelArrows: true, theme: theme });
    $("#Button").jqxToggleButton({ width: 150, height: 30, theme: theme });
    <div id='jqxMenu'>
    <li><a href="#Home">Home</a></li>
    <li><a href="#Services">Services</a></li>
    <li>About Us
    <li style='list-style: none;' ignoretheme='true'>
    <input value="Button" id="Button" style="margin-top: -5px;" type="button" /></div>

    The button is added to the last item.

    Best Regards,
    Peter Stoev

    jQWidgets Team

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

You must be logged in to reply to this topic.