jQWidgets Forums

jQuery UI Widgets Forums Navigation NavigationBar, ToolBar, NavBar Dynamic Data in NavigationBar

This topic contains 1 reply, has 2 voices, and was last updated by  ivailo 10 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Dynamic Data in NavigationBar #70401

    vinodn
    Participant

    Hi Team,

    Can we use Dynamic data to create groups for navigation in NavigationBar.

    For example, Heading & Content both will come dynamically

    Heading 1 <- Dynamic
    – Content 1
    Heading 2 <- Dynamic
    – Content 2

    Dynamic Data in NavigationBar #70417

    ivailo
    Participant

    Hi vinodn,

    You can use Dynamic data to create groups for navigation in NavigationBar. The component is irrelevant to the number of groups and their contents. Just have to build correct sequence of Header/Content elements.

    You can see 2 solutions how to add dynamically new elements.
    1. You can create the container and then from random data structure to fill all the elements.
    The example is in this fiddle

    2. You can create the container + some element statically created and then to add additional when they are needed. Here you can use built-in function ‘insert’.
    The example is in this fiddle

    Best Regards,
    Ivailo Ivanov

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

You must be logged in to reply to this topic.