jQWidgets Forums

jQuery UI Widgets Forums Navigation Menu, Context Menu Using knockout for a sub-menu

This topic contains 1 reply, has 2 voices, and was last updated by  Vladimir 9 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Using knockout for a sub-menu #75759

    DM
    Participant

    Hi,

    Is it possible to have fixed content for a menu (using

      &

    • tags) but to have it include a sub menu generated dynamically using json/knockout?

      If so, do you have an example?

      Thanks,

    Using knockout for a sub-menu #75774

    Vladimir
    Participant

    Hello alanfaux,

    Unfortunately we have no such demo.
    However what you can do is have a menu initialized by a dataAdapter connected to your json/knockout. Demo for json binding.
    And have logic inside one of the dataAdapter’s callback functions (for example loadComplete() callback function) that modifies your data so that has your fixed content along with your dynamic content. You may also need to reset the menu source in loadComplete if the databinding doesn’t update automatically.

    Best Regards,
    Vladimir

    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.