erichexter / twitter.bootstrap.mvc

nuget package to make bootstrap easy with mvc4
Apache License 2.0
248 stars 134 forks source link

Examples of the Navigation features #10

Closed davidalpert closed 11 years ago

davidalpert commented 11 years ago

After installing this nuget package, the one thing I had a hard time grokking from the sample project was the Navigation-related features.

An example would be really useful to show how to set up NavigationRoutes and how those differ from other routes I might define in the application...

For example, it looks like the Navigation related pieces of this package take care of adding the 'active' class to the current route, but how do I define a set of routes "underneath" one of the items on the main menu, or is that against the convention?

erichexter commented 11 years ago

Do you mean.. you want to add sub menus to the navigation?

davidalpert commented 11 years ago

I can think of a couple of options:

probably others...?

An example exercising the current functionality would help answer my questions about the current implementation and I could contribute to drive out any additional features I need for my use cases.

erichexter commented 11 years ago

The current implementation only accounts for the main navigation menu

erichexter commented 11 years ago

this example shows a sub menu.. http://twitter.github.com/bootstrap/examples/carousel.html

erichexter commented 11 years ago

Nav route configuration example: https://gist.github.com/4128989

davidalpert commented 11 years ago

thanks!