jQWidgets Forums

jQuery UI Widgets Forums Navigation Menu, Context Menu bug in jqxMenu?

This topic contains 3 replies, has 2 voices, and was last updated by  jccompagnon 11 years, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • bug in jqxMenu? #52689

    jccompagnon
    Participant

    so we have a jqxMenu on top of our page:
    <script>
    $=jQuery.noConflict();
    $(function() {
    //——————————–
    // menu
    //——————————–
    $(“.jqxMenuTop”).jqxMenu({ animationShowDuration: 300, animationHideDuration: 200, animationShowDelay: 200 });
    $(“.jqxMenuTop”).jqxMenu({ autoOpen: true });
    $(“.jqxMenuTop”).css(‘visibility’, ‘visible’);
    $(“.jqxMenuTop”).jqxMenu({ showTopLevelArrows: true });
    $(“.jqxMenuTop”).jqxMenu({ disabled: false});
    $(“.jqxMenuTop”).jqxMenu({ enableHover: true });
    });

    </script>
    <div style=” background-color: #E8E8E8;”>
    <div id=”jqxWidget”>
    <!– menu on the left side –>
    <div id=”jqxMenuTop” class=”jqxMenuTop” style=”float: left;visibility: hidden;”>

    </div>
    </div>
    </div>

    and further bellow in our page we have a navbar
    $(function() {
    //===========================
    // left navigation bar menu
    //===========================
    $(“#jqxNavigationBar”).jqxNavigationBar({ width: 200, expandMode: ‘multiple’, expandedIndexes: [2,1,0]});

    });
    </script>
    <!– start left navigation menu –>
    <div id=’jqxWidget’ style=”float: left;”>
    <div id=’jqxNavigationBar’>
    <div>
    <div style=’margin-top: 2px;’>
    <div style=’float: left;’>
    Logs
    </div>
    <div style=’margin-left: 4px; float: left;’>Logs</div>
    </div>
    </div>
    <div>

    </div>
    </div>
    </div>

    this does not load the navBar
    for it to load properly we have to init the navbar BEFORE the jqxMenu

    we use jqxWidget 3.2.2
    in short if I put $(function() {
    //===========================
    // left navigation bar menu
    //===========================
    $(“#jqxNavigationBar”).jqxNavigationBar({ width: 200, expandMode: ‘multiple’, expandedIndexes: [2,1,0]});

    });
    on top of the page it then loads both but if it is bellow the jqxMenu it does not load the navBar

    bug in jqxMenu? #52690

    jccompagnon
    Participant

    I also get error:
    Uncaught TypeError: Object [object global] has no method ‘toThemeProperty’ VM3652 jqxmenu.js:7

    in the console

    bug in jqxMenu? #52693

    Peter Stoev
    Keymaster

    Hi jccompagnon,

    What is the bug? How can we reproduce it? Do you know that the initialization of the widgets should be in document.ready script block?

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    bug in jqxMenu? #52983

    jccompagnon
    Participant

    my bad I thought
    $(function() {
    was the same as document ready ?!?!?

    works now

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

You must be logged in to reply to this topic.