jQuery UI Widgets Forums Navigation NavigationBar, ToolBar, NavBar Navigation bar collapse all

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Navigation bar collapse all #104947


    hello –

    is there a way to collapse all navigation open items? the best i can come up with is something like this:

    for ( let x=0; x < $('#jqxNavigationBar').children().length/2; x++ ) {
         $('#jqxNavigationBar').jqxNavigationBar('collapseAt', x);
    • This topic was modified 4 years, 11 months ago by  edwardsmarkf.
    Navigation bar collapse all #104980


    Hello edwardsmarkf,

    Yes, this is one possible option.
    An another option is to get the indexes of the expanded items via expandedIndexes” property.
    Please, take a look at this example.

    Best Regards,
    Hristo Hristov

    jQWidgets team

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

You must be logged in to reply to this topic.