This is a migrated thread and some comments may be shown as answers.

Add href's to NavBar?

1 Answer 46 Views
NavBar
This is a migrated thread and some comments may be shown as answers.
Ronnie
Top achievements
Rank 1
Ronnie asked on 26 Jun 2012, 05:46 PM
Hello,

From what I am seeing in the demos, NavBar just displays a static list... What would be the proper way to link each "Nav" item to another view?

Thanks!
-Ronnie

1 Answer, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 29 Jun 2012, 10:29 AM
Hi Ronnie,

You can set the button href attribute to point to the ID of the view you want to show and it would navigate to it on click, like this:
<div data-role="view" id="source" data-title="Source">
    <header data-role="header">
        <div data-role="navbar">
            ...
            <a data-align="right" data-role="button" href="#target">Click me</a>
        </div>
    </header>
</div>
<div data-role="view" id="target" data-title="Target">
    ...
</div>


Kind regards,
Kamen Bundev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
NavBar
Asked by
Ronnie
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
Share this question
or